You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Justice (JIRA)" <ji...@apache.org> on 2013/01/18 23:24:13 UTC
[jira] [Created] (OOZIE-1182) Improve writeAuthToken exception when
OOZIE_URL is improperly set without a URI.
Robert Justice created OOZIE-1182:
-------------------------------------
Summary: Improve writeAuthToken exception when OOZIE_URL is improperly set without a URI.
Key: OOZIE-1182
URL: https://issues.apache.org/jira/browse/OOZIE-1182
Project: Oozie
Issue Type: Improvement
Components: client, security
Affects Versions: 3.3.0
Reporter: Robert Justice
Priority: Minor
It would be good to improve the below exception to detect a improper URL
in a secure Oozie environment, rather than flag it as a writeAuthToken failure
[rjustice@cm1 ~]$ export OOZIE_URL=http://cm1.rgjustice.com:11000
[rjustice@cm1 ~]$ oozie jobs -verbose -auth SIMPLE
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.getJobsInfo(OozieClient.java:1154)
at org.apache.oozie.cli.OozieCLI.jobsCommand(OozieCLI.java:1179)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:496)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:466)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:176)
null
[rjustice@cm1 ~]$ export OOZIE_URL=http://cm1.rgjustice.com:11000/oozie
[rjustice@cm1 ~]$ oozie jobs -verbose -auth SIMPLE
Error: AUTHENTICATION : Could not authenticate, Authentication failed, status: 401, message: Unauthorized
--
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