OOZIE状态检查会抛出java.lang.NullPointerException

时间:2016-03-01 14:45:25

标签: hadoop mapreduce cloudera oozie bigdata

我是oozie的新手,试图在CDH4.1.1中编写oozie工作流程。所以我启动了oozie服务,然后使用此命令检查状态:

sudo service oozie status

我收到了消息:

running

然后我尝试使用此命令检查状态:

oozie admin --oozie http://localhost:11000/oozie status

我得到以下例外:

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.getSystemMode(OozieClient.java:1299)
    at org.apache.oozie.cli.OozieCLI.adminCommand(OozieCLI.java:1323)
    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

读取异常堆栈,我无法找出此异常的原因。请让我知道为什么我有这个例外以及如何解决这个问题。

1 个答案:

答案 0 :(得分:1)

尝试在群集中禁用env属性USE_AUTH_TOKEN_CACHE_SYS_PROP。根据您的stacktrace和code

通常,群集使用基于Kerberos的身份验证进行设置,该身份验证是通过执行步骤here设置的。不确定你是否想这样做,但只是想提到它作为一个FYI。