[
https://issues.apache.org/jira/browse/HADOOP-4053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631672#action_12631672
]
Hemanth Yamijala commented on HADOOP-4053:
------------------------------------------
The {{JobInProgressListener}} states it is for capturing lifecycle of a job.
Given that, a job's state change when it completes is a lifecycle change. And
therefore, it should be notified by a separate API such as {{jobCompleted()}}.
So +1 for that approach.
Since there are schedulers already implemented, should we make this method a
concrete one in {{JobInProgressListener}} that's a no-op, and allow the
individual schedulers to override and implement the desired functionality ?
> Schedulers need to know when a job has completed
> ------------------------------------------------
>
> Key: HADOOP-4053
> URL: https://issues.apache.org/jira/browse/HADOOP-4053
> Project: Hadoop Core
> Issue Type: Improvement
> Affects Versions: 0.19.0
> Reporter: Vivek Ratan
> Assignee: Amar Kamat
> Fix For: 0.19.0
>
>
> The JobInProgressListener interface is used by the framework to notify
> Schedulers of when jobs are added, removed, or updated. Right now, there is
> no way for the Scheduler to know that a job has completed. jobRemoved() is
> called when a job is retired, which can happen many hours after a job is
> actually completed. jobUpdated() is called when a job's priority is changed.
> We need to notify a listener when a job has completed (either successfully,
> or has failed or been killed).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.