Hello,
I am trying to submit a workflow with the cli client, but I get this
stacktrace:
java.lang.RuntimeException: java.lang.NullPointerException
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)
at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2713)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:477)
at
org.apache.oozie.client.OozieClient$JobSubmit.call(OozieClient.java:529)
at
org.apache.oozie.client.OozieClient$JobSubmit.call(OozieClient.java:504)
at
org.apache.oozie.client.OozieClient$ClientCallable.call(OozieClient.java:422)
at org.apache.oozie.client.OozieClient.run(OozieClient.java:598)
at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:795)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:512)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:485)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:182)
Caused by: java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
at sun.misc.CharacterEncoder.encode(CharacterEncoder.java:188)
at
sun.net.www.protocol.http.NegotiateAuthentication.setHeaders(NegotiateAuthentication.java:156)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1481)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
... 8 more
The command for submitting the workflow is
oozie job -oozie http://<oozie-host>:11000/oozie -config job.properties -run
The job.properties is
nameNode=hdfs://<namenode-host>:8020
jobTracker=<resourcemanager-host>:8032
jobName=oozie-test-flow
oozieJobPath=/tmp/oozie-test-flow/
oozie.wf.application.path=${nameNode}${oozieJobPath}
oozie.use.system.libpath=true
The exception seems to be such an early one that I feel it's not even
relevant to include the workflow.
However, this is not a new workflow, it has worked before (famous words...).
I can run other commands such as "jobs", "jobs -info" with the same oozie
url.
I have tried to search the oozie server logs but not found anything so far.
Do you have any tips?
Best Regards
Thomas