Robert Kanter created OOZIE-1010:
------------------------------------
Summary: Oozie CLI throws an NPE with Hadoop trunk with simple auth
Key: OOZIE-1010
URL: https://issues.apache.org/jira/browse/OOZIE-1010
Project: Oozie
Issue Type: Bug
Affects Versions: trunk
Reporter: Robert Kanter
Assignee: Robert Kanter
Fix For: trunk
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:
{code}
$ 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
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira