こんにちは、以下のリンクをたどっています。
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.handleError(OozieClient.java:508) at org.apache.oozie.client.OozieClient$JMSInfo.call(OozieClient.java:757) at 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 ?
私に提案してください。ありがとう