[ 
https://issues.apache.org/jira/browse/OOZIE-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126371#comment-14126371
 ] 

Purshotam Shah commented on OOZIE-1567:
---------------------------------------

+1, after fixing minor comments.

{quote}
-                -change <arg>         change a coordinator/bundle job
+                -change <arg>         change a coordinator job
{quote}
Should be both coordinator and bundle.


{quote}
+    /**
+     * Poll a job (Workflow Job ID, Coordinator Job ID, Coordinator Action ID, 
or Bundle Job ID) and return when it has reached a
+     * terminal state.
+     * (i.e. FAILED, KILLED, SUCCEEDED)
+     *
+     * @param id The Job ID
+     * @param timeout timeout in milliseconds (negative values indicate no 
timeout)
+     * @param interval polling interval in milliseconds (must be positive)
+     * @param verbose if true, the current status will be printed out at each 
poll; if false, no output
+     * @throws OozieClientException thrown if the job's status could not be 
retrieved
+     */
+    public void poll
{quote}
timeout and interval are in minutes.


{quote}
-                -action <arg>         coordinator rerun/kill on action ids 
(requires -rerun/-kill); coordinator log retrieval on action ids (requires -log)
+                -action <arg>         coordinator rerun on action ids 
(requires -rerun);
+                                      coordinator log retrieval on action ids 
(requires -log)
{quote}
Why (requires -rerun/-kill) is changed (requires -rerun). -kill also need 
-action.


> 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, 
> OOZIE-1567.patch, 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)

Reply via email to