Member since
11-09-2015
3
Posts
0
Kudos Received
0
Solutions
11-16-2015
09:26 AM
Here is the sample python code i am using req = urllib2.Request('http://xx.xx.xxx.xx:11000/oozie/v1/jobs?show=info') response = urllib2.urlopen(req) output = response.read() output1 = json.loads(output) print output1 Output: {"status": "RUNNING", "run": 0, "startTime": "Mon, 16 Nov 2015 14:40:29 GMT", "appName": "WrkflowGeneratorDemo", "lastModTime": "Mon, 16 Nov 2015 14:43:08 GMT", "actions": [], "acl": null, "appPath": null, "externalId": null, "consoleUrl": "http://ip-xx-xxx-xx-xx:11000/oozie?job=0000096-151104073848042-oozie-hado-W", "conf": null, "parentId": null, "createdTime": "Mon, 16 Nov 2015 14:40:29 GMT", "toString": "Workflow id[0000096-151104073848042-oozie-hado-W] status[RUNNING]", "endTime": null, "id": "0000096-151104073848042-oozie-hado-W", "group": null, "user": "hadoop"} In the req, i have tried specifying the len, offset, jobtype and type. But it always gives the same output
... View more
11-16-2015
01:32 AM
Thanks Harsh. I have been using the same Job Information as you mentioned. I guess you are referring to the actions in the JSON returned. But actions is coming as empty for all workflows. Do i need to do something extra to get action level information ? Edit: By actions i mean the individual actions that we define in the workflow XML. I am using a normal job.properties file as configuration and not a coordinator. In other words it can mean the access to Job DAG.
... View more
11-09-2015
11:28 AM
Hi I am trying to fetch the name of the running action in a oozie workflow. I know we can get the workflow level details by using a REST Request as given here. But i did not have any luck in getting more detailed drilled down info of a workflow. Can someone please help me out on this ?
... View more
Labels:
- Labels:
-
Apache Oozie