简体   繁体   中英

Workflow info from Oozie through Java API call

I want to develop a Java API to connect with Oozie to get the workflow information. My requirement is I will be passing the workflow name as the input and it should list all the job Ids (with status as running, killed, failed etc) and other related info.

I am trying to use this function to get this details.

String wfname="test";
List<WorkflowJob> jobinfo = wc.getJobsInfo(wfname,0,2);

However I am getting an error when I execute the jar:

Invalid jobs filter [test], elements must be semicolon-separated name=value pairs.

Any help would be highly appreciated.

Thanks.

Syntax for filter for the getJobsInfo(String) , getJobsInfo(String, int, int) methods is :

 [NAME=VALUE][;NAME=VALUE]*.

Error itself says that you are not using name=value pairs

elements must be semicolon-separated name=value pairs

Try something like following : name=testwf1;name=testwf2

Please refer the OozieClient for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM