Robert Kanter created OOZIE-1367:
------------------------------------
Summary: Set an environment variable to the ID of the last job
submitted
Key: OOZIE-1367
URL: https://issues.apache.org/jira/browse/OOZIE-1367
Project: Oozie
Issue Type: New Feature
Components: client
Affects Versions: trunk
Reporter: Robert Kanter
Priority: Minor
Fix For: trunk
I'm not sure if this is possible, but it would be really convenient if there
was an env var in the shell that referred to the ID of the last job submitted
by the oozie client.
For example, submitting a job:
{noformat}
$ oozie job -config examples/apps/hive/job.properties -run
job: 0000000-130509181404980-oozie-rkan-W
# copy 0000000-130509181404980-oozie-rkan-W
$ oozie job -info 0000000-130509181404980-oozie-rkan-W
...
{noformat}
Then if you want to query oozie for info about the job, you have to copy-paste
the job ID. While not a major issue, it can get annoying if you have to do
this repeatedly.
If we had an env var that referred to the ID of the last submitted job, then
you wouldn't have to keep copy-pasting the job ID:
{noformat}
$ oozie job -config examples/apps/hive/job.properties -run
job: 0000000-130509181404980-oozie-rkan-W
# copy 0000000-130509181404980-oozie-rkan-W
$ oozie job -info $OOZIE_LAST_JOB_ID
...
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira