我正在尝试使用 javacode 启动 oozie 作业,但无法执行相同操作。以下代码为几行提供了异常“未处理的类型 oozieClientException”,例如
String jobId = wc.run(conf);
我是java新手,正在寻求帮助。这是我的代码:
OozieClient wc = new OozieClient("http://host.com:11000/oozie");
Properties conf = wc.createConfiguration();
conf.setProperty(....)
...
String jobId = wc.run(conf);
System.out.println("Workflow job submitted");
while (wc.getJobInfo(jobId).getStatus() == WorkflowJob.Status.RUNNING) {
System.out.println("Workflow job running ...");
Thread.sleep(10 * 1000);
}
System.out.println("Workflow job completed ...");
System.out.println(wc.getJobInfo(jobId));