嗨,我正在关注下面的链接。
http://oozie.apache.org/docs/4.0.0/AG_Install.html#Notifications_Configuration
我已经完成了上面链接中所说的 cdh 中的所有配置并重新启动了 oozie
现在对于消费者应用程序,我有用于测试目的的简单 java 主类
代码片段
OozieClient oc = new OozieClient("ooziebaseurl:11000/oozie");
JMSConnectionInfo jmsInfo = oc.getJMSConnectionInfo();
Properties jndiProperties = jmsInfo.getJNDIProperties();
Context jndiContext = new InitialContext(jndiProperties);
在获取 JMSConnectionInfo 时,我遇到了以下异常
线程“主”E1601 中的异常:E1601:无法检索 JMS 连接信息 [JMSTopicService 未初始化。JMS 通知可能未启用] 在 org.apache.oozie.client.OozieClient$JMSInfo.call(OozieClient.java:757) 在 org.apache.oozieClient.handleError(OozieClient.java:508) 在 org.apache .oozie.client.OozieClient$JMSInfo.call(OozieClient.java:744) 在 org.apache.oozie.client.OozieClient$ClientCallable.call(OozieClient.java:479) 在 org.apache.oozie.client.OozieClient.getJMSConnectionInfo (OozieClient.java:800) 在 com.oozie.jms.OozieJMSClient.main(OozieJMSClient.java:25)
few more info while debug i found that it is trying to call
http://IP:11000/oozie/v2/admin/jmsinfo
Which says 404
when i try to hit in the browser it says
HTTP STATUS 404
The request sent by the client was syntactically incorrect.
one more curious thing for me is as per link
http://oozie.apache.org/docs/4.0.1/WebServicesAPI.html
管理端点
该端点用于获取 Oozie 系统状态和配置信息。
它支持以下子资源:status、os-env、sys-props、configuration、instrumentation、systems、available-timezones。
then why /jmsinfo is getting as a rest call ?
请建议我。谢谢