Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1010

Oozie CLI throws an NPE with Hadoop trunk with simple auth

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • trunk
    • 4.1.0
    • None
    • None

    Description

      When Oozie is used with Hadoop trunk (specifically, a Hadoop that includes HADOOP-8855) the Oozie CLI will throw a Null Pointer Exception if Oozie is using simple authentication, the .oozie-auth-token doesn't already exist, and the user doesn't supply -auth SIMPLE. Once the user supplies -auth SIMPLE, the .oozie-auth-token file is written and -auth SIMPLE is no longer needed for subsequent commands.

      The NPE looks something like this:

      $ oozie admin -version
      java.lang.NullPointerException
      	at java.io.Writer.write(Writer.java:140)
      	at org.apache.oozie.client.AuthOozieClient.writeAuthToken(AuthOozieClient.java:182)
      	at org.apache.oozie.client.AuthOozieClient.createConnection(AuthOozieClient.java:137)
      	at org.apache.oozie.client.OozieClient.validateWSVersion(OozieClient.java:243)
      	at org.apache.oozie.client.OozieClient.createURL(OozieClient.java:344)
      	at org.apache.oozie.client.OozieClient.access$000(OozieClient.java:76)
      	at org.apache.oozie.client.OozieClient$ClientCallable.call(OozieClient.java:410)
      	at org.apache.oozie.client.OozieClient.getServerBuildVersion(OozieClient.java:1329)
      	at org.apache.oozie.cli.OozieCLI.adminCommand(OozieCLI.java:1307)
      	at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:499)
      	at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:466)
      	at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:176)
      null
      

      Attachments

        Issue Links

          Activity

            People

              rkanter Robert Kanter
              rkanter Robert Kanter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: