[
https://issues.apache.org/jira/browse/OOZIE-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14118626#comment-14118626
]
Purshotam Shah commented on OOZIE-1567:
---------------------------------------
Few Comments
1.$ oozie poll -id <job_id>
Do we need to specify option -id, the command can be just "oozie poll <job_id>"?
2. + public static final String QUIET_OPTION = "quiet";
In place of adding new option "quiet" can you using existing option "verbose".
If verbose is enable, it will print job status else no.
3.
{code}
+ Option timeout = new Option(TIMEOUT_OPTION, true, "timeout in
milliseconds (default is 30 min, negative values indicate "
+ + "no timeout)");
+ Option interval = new Option(INTERVAL_OPTION, true, "polling interval
in milliseconds (default is 5 min)");
{code}
Can you please specify time in Min/Sec? I don't think anybody will like to
specify time in milliseconds ( we should even not support specifying time in
milliseconds as it will increase load on server)
4. For coord "IGNORED" is also a terminal state.
{code}
public boolean isTerminalStatus() {
boolean isTerminal = false;
switch (getStatus()) {
case SUCCEEDED:
case FAILED:
case KILLED:
case DONEWITHERROR:
case IGNORED:
isTerminal = true;
break;
default:
isTerminal = false;
break;
}
return isTerminal;
}
{code}
5. We can also support polling of coord action, user can rerun a coord action
and may want to poll it. This might be more useful in compare to polling on
coord/bundle ( as coord/bundle may run for days).
> Provide a wait tool in Oozie
> ----------------------------
>
> Key: OOZIE-1567
> URL: https://issues.apache.org/jira/browse/OOZIE-1567
> Project: Oozie
> Issue Type: New Feature
> Components: core
> Affects Versions: 4.0.0
> Reporter: Viji
> Assignee: Robert Kanter
> Priority: Trivial
> Attachments: OOZIE-1567.patch, OOZIE-1567.patch, OOZIE-1567.patch
>
>
> Currently, in situations where a program has to wait to check wether an oozie
> workflow is successful or not, it is done by constantly pinging the oozie
> workflow status (that is, manual scripts need to be written). It would be
> good if Oozie provided a {{oozie wait -jobID <JOBID>}} or similar.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)