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



我是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

阅读异常堆栈,我无法找出此异常的原因。请让我知道为什么我收到此异常以及如何解决此问题。

尝试在群集中禁用 env 属性USE_AUTH_TOKEN_CACHE_SYS_PROP。根据您的堆栈跟踪和代码.

通常,群集使用基于 Kerberos 的身份验证进行设置,这是按照此处的步骤设置的。不确定您是否要这样做,但只是想仅供参考。

相关内容

  • 没有找到相关文章

最新更新