You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Karthik Kambatla (JIRA)" <ji...@apache.org> on 2012/06/20 00:54:42 UTC

[jira] [Created] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Karthik Kambatla created MAPREDUCE-4355:
-------------------------------------------

             Summary: Add JobStatus getJobStatus(JobID) to JobClient.
                 Key: MAPREDUCE-4355
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
             Project: Hadoop Map/Reduce
          Issue Type: New Feature
          Components: mrv1, mrv2
    Affects Versions: 2.0.0-alpha, 1.0.3
            Reporter: Karthik Kambatla
            Assignee: Karthik Kambatla


To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.

getJob(JobID) returns RunningJob, which doesn't hold the job's start time.

Hence, we need to add getJobStatus(JobID) to the API.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401317#comment-13401317 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk #1088 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1088/])
    MAPREDUCE-4355. Add JobStatus getJobStatus(JobID) to JobClient. (kkambatl via tucu) (Revision 1353757)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1353757
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Cluster.java

                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add startTime to RunningJob

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401616#comment-13401616 ] 

Karthik Kambatla commented on MAPREDUCE-4355:
---------------------------------------------

Arun, it might be cleaner to add RunningJob.getJobStatus() instead of adding startTime, endTime fields to RunningJob and redundantly maintaining them.

Thanks.
                
> Add startTime to RunningJob
> ---------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arun C Murthy reopened MAPREDUCE-4355:
--------------------------------------


I'm sorry, but we *cannot* make an incompatible change to JobClient which is a public API, at least in hadoop-1.x

-1 on this change.

This will break a number of existing apis.

It seems we cud just add start-time to RunningJob if necessary.

Alejandro - do you mind reverting this change since it breaks compatibility? Thanks.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407296#comment-13407296 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2441 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2441/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401054#comment-13401054 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2405 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2405/])
    MAPREDUCE-4355. Add JobStatus getJobStatus(JobID) to JobClient. (kkambatl via tucu) (Revision 1353757)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1353757
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Cluster.java

                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401521#comment-13401521 ] 

Arun C Murthy commented on MAPREDUCE-4355:
------------------------------------------

bq. Adding startTime to RunningJob does definitely help. By returning JobStatus, we would be able to serve user requests for start time on old, non-running jobs as well.

Not really, the old jobs are 'retired' and won't be served after a while. JobHistory is the option there.

So, please, do change this to add startTime to RunningJob. Thanks.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403437#comment-13403437 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12533864/MR-4355_mr2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 2 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2527//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2527//console

This message is automatically generated.
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402623#comment-13402623 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12533712/MR-4355_mr2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2523//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2523//console

This message is automatically generated.
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Status: Open  (was: Patch Available)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 2.0.0-alpha, 1.0.3
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410827#comment-13410827 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Common-trunk-Commit #2441 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2441/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment:     (was: MR-4355_mr2.patch)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397790#comment-13397790 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12532743/MR-4355_mr2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 javadoc.  The javadoc tool appears to have generated 13 warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2485//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2485//console

This message is automatically generated.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Release Note: 
- Augments the API - JobClient.getJobStatus(JobID)
- Renames existing files - TestJobClientGetJob to TestJobClient
    Hadoop Flags: Incompatible change
          Status: Patch Available  (was: Open)

Submitting to make sure Hudson doesn't complain
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 2.0.0-alpha, 1.0.3
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Robert Joseph Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401403#comment-13401403 ] 

Robert Joseph Evans commented on MAPREDUCE-4355:
------------------------------------------------

It looks like this added in two new javadoc warnings  

MAPREDUCE-4373
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr2.patch

Patch with updated test:
- TestNetworkedJob defines its own MR job, independent of other tests
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr1.patch
    
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397939#comment-13397939 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12532781/MR-4355_mr1.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    -1 patch.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2489//console

This message is automatically generated.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398763#comment-13398763 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12532926/MR-4355_mr2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 javadoc.  The javadoc tool appears to have generated 15 warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2493//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2493//console

This message is automatically generated.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment:     (was: MR-4355_mr1.patch)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403664#comment-13403664 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12533921/MR-4355_mr2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient:

                  org.apache.hadoop.mapreduce.lib.jobcontrol.TestMapReduceJobControl
                  org.apache.hadoop.mapred.jobcontrol.TestLocalJobControl

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2530//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2530//console

This message is automatically generated.
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr1.patch

Updated patch for MR1.

ensureFreshStatus() calls updateStatus() only after a particular amount of time has passed since previous updateStatus().

For getJobStatus(), to get the latest status, we need to call updateStatus(). Do you suggest calling ensureFreshStatus() instead for consistency?
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401499#comment-13401499 ] 

Karthik Kambatla commented on MAPREDUCE-4355:
---------------------------------------------

Arun,

Adding startTime to RunningJob does definitely help. By returning JobStatus, we would be able to serve user requests for start time on old, non-running jobs as well.

If you think we should go the RunningJob route, I could redo it that way. However, it might be a little ambiguous for users.

Thanks.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment:     (was: MR-4355_mr1.patch)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408352#comment-13408352 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk #1128 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1128/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment:     (was: MR-4355_mr2.patch)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr2.patch
    
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407254#comment-13407254 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Common-trunk-Commit #2424 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2424/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add startTime to RunningJob

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401941#comment-13401941 ] 

Alejandro Abdelnur commented on MAPREDUCE-4355:
-----------------------------------------------

I'll revert the current commit WED morning. 

I think adding a getJobStatus() method to RunningJob would be more comprehensive that just adding startTime(). Arun, would you agree with that?
                
> Add startTime to RunningJob
> ---------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr1.patch
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401417#comment-13401417 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk #1121 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1121/])
    MAPREDUCE-4355. Add JobStatus getJobStatus(JobID) to JobClient. (kkambatl via tucu) (Revision 1353757)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1353757
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Cluster.java

                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408289#comment-13408289 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk #1095 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1095/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402640#comment-13402640 ] 

Hadoop QA commented on MAPREDUCE-4355:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12533723/MR-4355_mr1.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    -1 patch.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2524//console

This message is automatically generated.
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402622#comment-13402622 ] 

Alejandro Abdelnur commented on MAPREDUCE-4355:
-----------------------------------------------

The mr1 patch has a few false changes in the test class, please revert those.

Please add a simple testcase for the mr2 case.

Also, in the mr1 patch you are using 'updateStatus()' to update the jobstatus before returning the object. the method above uses 'ensureFreshStatus()', why the difference?
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Jason Lowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397998#comment-13397998 ] 

Jason Lowe commented on MAPREDUCE-4355:
---------------------------------------

The 13 javadoc warnings were caused by MAPREDUCE-3868, see HDFS-3550.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400938#comment-13400938 ] 

Alejandro Abdelnur commented on MAPREDUCE-4355:
-----------------------------------------------

+1
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (MAPREDUCE-4355) Add startTime to RunningJob

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402450#comment-13402450 ] 

Alejandro Abdelnur edited comment on MAPREDUCE-4355 at 6/27/12 6:45 PM:
------------------------------------------------------------------------

reverted from trunk, branch-2 and branch-1.
                
      was (Author: tucu00):
    reverted from trunk and branch-2
                  
> Add startTime to RunningJob
> ---------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arun C Murthy closed MAPREDUCE-4355.
------------------------------------

    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.2-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
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

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment:     (was: MR-4355_mr2.patch)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr2.patch

Uploading a patch for MR2: MR-4355_mr2.patch.

The patch
- implements JobClient.getJobStatus(JobID)
- renames TestJobClientGetJob to TestJobClient
- adds a test for getJobStatus to the renamed test file
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400971#comment-13400971 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2456 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2456/])
    MAPREDUCE-4355. Add JobStatus getJobStatus(JobID) to JobClient. (kkambatl via tucu) (Revision 1353757)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1353757
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Cluster.java

                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Status: Patch Available  (was: Open)

Re-submitting the patch to make sure Jenkins is fine with it.

The tests it complained earlier about were removed from trunk (and have nothing to do with this patch).
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 2.0.0-alpha, 1.0.3
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated MAPREDUCE-4355:
------------------------------------------

    Fix Version/s:     (was: 1.1.0)
                   1.2.0
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment:     (was: MR-4355_mr2.patch)
    
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add startTime to RunningJob

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402465#comment-13402465 ] 

Arun C Murthy commented on MAPREDUCE-4355:
------------------------------------------

bq. Arun, it might be cleaner to add RunningJob.getJobStatus() instead of adding startTime, endTime fields to RunningJob and redundantly maintaining them.

+1, good point!
                
> Add startTime to RunningJob
> ---------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Description: 
Usecase: Read the start/end-time of a particular job.

Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.

Adding RunningJob.getJobStatus() solves the issue.

  was:
To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.

getJob(JobID) returns RunningJob, which doesn't hold the job's start time.

Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.


        Summary: Add RunningJob.getJobStatus()  (was: Add startTime to RunningJob)
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Status: Patch Available  (was: Reopened)

Submitting the MR1 and MR2 patches.

- No tests for MR2 - just added a wrapper call to Job.getStatus()
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 2.0.0-alpha, 1.0.3
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398752#comment-13398752 ] 

Karthik Kambatla commented on MAPREDUCE-4355:
---------------------------------------------

Devaraj, 

Thanks for your comments. I uploaded another patch with the suggested changes, and updated getJob(JobID) also accordingly.

                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397945#comment-13397945 ] 

Karthik Kambatla commented on MAPREDUCE-4355:
---------------------------------------------

W.r.t MR2 patch, Eclipse shows the same number of warnings with and without the patch. Any pointers as to where I should look for these extra warnings Hudson reports?

Otherwise, I believe the patches are good to go.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr2.patch
    
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated MAPREDUCE-4355:
------------------------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Thanks Karthik. Committed to trunk, branch-2 and branch-1.
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407242#comment-13407242 ] 

Alejandro Abdelnur commented on MAPREDUCE-4355:
-----------------------------------------------

+1
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated MAPREDUCE-4355:
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.1-alpha
                   1.1.0
     Hadoop Flags: Incompatible change,Reviewed  (was: Incompatible change)
           Status: Resolved  (was: Patch Available)

Thanks Karthik. Committed to trunk, branch-1 & branch-2.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400992#comment-13400992 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Common-trunk-Commit #2387 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2387/])
    MAPREDUCE-4355. Add JobStatus getJobStatus(JobID) to JobClient. (kkambatl via tucu) (Revision 1353757)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1353757
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Cluster.java

                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407257#comment-13407257 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2492 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2492/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add startTime to RunningJob

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402450#comment-13402450 ] 

Alejandro Abdelnur commented on MAPREDUCE-4355:
-----------------------------------------------

reverted from trunk and branch-2
                
> Add startTime to RunningJob
> ---------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402691#comment-13402691 ] 

Alejandro Abdelnur commented on MAPREDUCE-4355:
-----------------------------------------------

regarding changing updateStatus() to ensureFreshStatus(), no I think updateStatus() is more appropriate.

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401146#comment-13401146 ] 

Arun C Murthy commented on MAPREDUCE-4355:
------------------------------------------

My bad, I read the patch wrong as removing getJob. Apologies for the noise.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add startTime to RunningJob

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

     Description: 
To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.

getJob(JobID) returns RunningJob, which doesn't hold the job's start time.

Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.


  was:
To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.

getJob(JobID) returns RunningJob, which doesn't hold the job's start time.

Hence, we need to add getJobStatus(JobID) to the API.


    Release Note:   (was: - Augments the API - JobClient.getJobStatus(JobID)
- Renames existing files - TestJobClientGetJob to TestJobClient)
    Hadoop Flags:   (was: Incompatible change,Reviewed)
         Summary: Add startTime to RunningJob  (was: Add JobStatus getJobStatus(JobID) to JobClient.)

Alejandro, sorry for the trouble. We need to revert the earlier commit.

Thanks.
                
> Add startTime to RunningJob
> ---------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to either add getJobStatus(JobID) to the API or add startTime to RunningJob. Doing the latter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401501#comment-13401501 ] 

Karthik Kambatla commented on MAPREDUCE-4355:
---------------------------------------------

Robert, sorry about the warnings - I ll upload a patch to MAPREDUCE-4373 at the earliest.

Thanks
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410785#comment-13410785 ] 

Hudson commented on MAPREDUCE-4355:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2508 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2508/])
    MAPREDUCE-4355. Add RunningJob.getJobStatus() (kkambatl via tucu) (Revision 1357723)

     Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1357723
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/RunningJob.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestNetworkedJob.java

                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.2.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Devaraj K (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398230#comment-13398230 ] 

Devaraj K commented on MAPREDUCE-4355:
--------------------------------------

It is good to have this API. Thanks for providing patch. 

There are few minor comments about the patch

1. Can we get the JobStatus directly from Cluster instance instead of getting the Job instance and getting the JobStatus from Job instance? In Cluster.java, getJob(JobID jobId) API is getting the JobStatus and creating the Job instance using the JobStatus, again you are getting the JobStatus from Job instance.

2. I don't see any use of having the jobid as final.

{code:xml}
+  public JobStatus getJobStatus(final JobID jobid) throws IOException {
{code}

3. Can you rename the jobid variable name to jobId, anyway it is minor you can take the final decision.
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4355) Add JobStatus getJobStatus(JobID) to JobClient.

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401147#comment-13401147 ] 

Arun C Murthy commented on MAPREDUCE-4355:
------------------------------------------

IAC, we could avoid the new API by adding startTime to RunningJob if that is the current drawback?
                
> Add JobStatus getJobStatus(JobID) to JobClient.
> -----------------------------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> To read the start-time of a particular job, one should not need to getAllJobs() and iterate through them.
> getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Hence, we need to add getJobStatus(JobID) to the API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4355) Add RunningJob.getJobStatus()

Posted by "Karthik Kambatla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karthik Kambatla updated MAPREDUCE-4355:
----------------------------------------

    Attachment: MR-4355_mr2.patch

Updated patch for MR2.
- RunningJob.getJobStatus()
- TestNetworkedJob uses MiniMRClientCluster
                
> Add RunningJob.getJobStatus()
> -----------------------------
>
>                 Key: MAPREDUCE-4355
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4355
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: mrv1, mrv2
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 1.1.0, 2.0.1-alpha
>
>         Attachments: MR-4355_mr1.patch, MR-4355_mr2.patch
>
>
> Usecase: Read the start/end-time of a particular job.
> Currently, one has to iterate through JobClient.getAllJobStatuses() and iterate through them. JobClient.getJob(JobID) returns RunningJob, which doesn't hold the job's start time.
> Adding RunningJob.getJobStatus() solves the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira