我试图使用 Java API 运行 oozie 工作流。但是在提交作业时,它给了我一个错误代码 500。请参阅下面的堆栈跟踪。
Exception in thread "main" HTTP error code: 500 : Internal Server Error
at org.apache.oozie.client.OozieClient.handleError(OozieClient.java:445)
at org.apache.oozie.client.OozieClient$JobSubmit.call(OozieClient.java:523)
at org.apache.oozie.client.OozieClient$JobSubmit.call(OozieClient.java:493)
at org.apache.oozie.client.OozieClient$ClientCallable.call(OozieClient.java:416)
at org.apache.oozie.client.OozieClient.run(OozieClient.java:587)
我使用的代码是:
OozieClient wc = new OozieClient("http://localhost:11000/oozie");
Properties conf = wc.createConfiguration();
conf.setProperty("jobTracker", "http://localhost:8021/");
conf.setProperty(OozieClient.APP_PATH, "localhost:9023/user/688697/jarloc");
// submit and start the workflow job
String jobId = wc.run(conf);
我使用的hadoop生态系统是:Cloudera Distribution for Hadoop v4.1.2
任何帮助是极大的赞赏!
谢谢,阿伦