gpt4 book ai didi

cloudera - 提交作业时 Oozie 空指针异常

转载 作者:行者123 更新时间:2023-12-01 23:46:25 34 4
gpt4 key购买 nike

只是尝试运行一个非常简单的字数统计示例,但在提交作业时获得以下空指针:

oozie 工作 -oozie= http://localhost:11000/oozie/ -config job.properties -run

[cloudera@localhost Oozie_Example]$ oozie job -oozie=http://localhost:11000/oozie/ -config job.properties -run
java.lang.RuntimeException: java.lang.NullPointerException
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1242)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2714)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:477)
at org.apache.oozie.client.OozieClient$JobSubmit.call(OozieClient.java:586)
at org.apache.oozie.client.OozieClient$JobSubmit.call(OozieClient.java:561)
at org.apache.oozie.client.OozieClient$ClientCallable.call(OozieClient.java:479)
at org.apache.oozie.client.OozieClient.run(OozieClient.java:655)
at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:918)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:579)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:552)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:199)
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:1482)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
... 8 more
java.lang.NullPointerException

这是我的工作属性文件:
nameNode=hdfs://localhost:8020
jobTracker=localhost:8021
queueName=default


inputDir=${nameNode}/user/dev/oozie/workflow/wordcount/input/
outputDir=${nameNode}/user/dev/oozie/workflow/wordcount/output/

oozie.libpath=${nameNode}/user/oozie/workflow/wordcount/lib
oozie.use.system.libpath=true

user.name=dev

oozie.wf.application.path=${nameNode}/user/${user.name}/oozie/workflow/wordcount/

有任何想法吗?它发生的很早,所以我认为它与 Oozie 或 namenode 有关。

最佳答案

想补充这个问题的答案。

当 oozie 客户端收到 NullPointerException 时,通常意味着该请求导致服务器线程失败。如果你想找出“真实”的原因,你应该查看CDH的/var/log/oozie/oozie.log等服务器日志。

在那里你会找到详细的堆栈跟踪。事实证明,这非常有帮助。至少在我们的例子中,它准确地说明了发生了什么,例如“hdfs 工作流文件不存在,等等……”

关于cloudera - 提交作业时 Oozie 空指针异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28972118/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com