Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
trunk
-
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
- relates to
-
HADOOP-8883 Anonymous fallback in KerberosAuthenticator is broken
- Closed
-
OOZIE-1368 Error message when using an incorrect oozie url with kerberos is misleading
- Closed
-
HADOOP-10078 KerberosAuthenticator always does SPNEGO
- Closed