Hello,
In Oozie 3, when I do this REST query on a coordinator job-id:
GET /oozie/v1/job/0000443-140423173404530-oozie-oozi-C?show=info
the response contains an "actions" array that has a listing of the
workflows:
"actions": [
{
"errorMessage": "",
"lastModifiedTime": "Wed, 28 May 2014 14:25:08 GMT",
"createdTime": "Wed, 28 May 2014 14:05:12 GMT",
"status": "SUCCEEDED",
"externalStatus": "",
"type": "",
"nominalTime": "Wed, 28 May 2014 05:00:00 GMT",
"externalId": "0000444-140423173404530-oozie-oozi-W",
"id": "0000443-140423173404530-oozie-oozi-C@1",
"createdConf": "",
"missingDependencies": "",
"runConf": "",
"actionNumber": 1,
"errorCode": "",
"trackerUri": "",
"toString": "WorkflowAction
name[0000443-140423173404530-oozie-oozi-C@1] status[SUCCEEDED]",
"coordJobId": "0000443-140423173404530-oozie-oozi-C",
"consoleUrl": ""
},
...
]
When I do that query on against Oozie 4, the actions array is always empty.
This contradicts what the Oozie 4 REST API documentation states:
https://oozie.apache.org/docs/4.0.0/WebServicesAPI.html
*Is this a bug in Oozie?*
I tried this with "v1" and "v2":
GET /oozie/v1/job/0000443-140423173404530-oozie-oozi-C?show=info
GET /oozie/v2/job/0000443-140423173404530-oozie-oozi-C?show=info
Both return the same thing.
If this is not a bug (and the Oozie 4.0 REST API docs are wrong), then I
need to know how to query Oozie to ask what workflows a coordinator has
run. What I really need to know is whether a coordinator currently has a
RUNNING workflow. *How should I do that with Oozie 4?*
I am using the Hortonworks HDP-2.1 distribution of Hadoop and the Oozie
that comes with that, which I believe is Oozie 4.0.0
-Michael