[ 
https://issues.apache.org/jira/browse/MAPREDUCE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748780#action_12748780
 ] 

Amareshwari Sriramadasu commented on MAPREDUCE-777:
---------------------------------------------------

Some questions/comments on proposed api:
1.
{code}
+
+  /* mapred.Queue.QueueState needs to extend this class */
+  public static enum QueueState {
+    STOPPED("stopped"), RUNNING("running");
{code}
enum cannot be extended in java. Owen, do you mean I should wrap this in a 
class?

2.  bq.  public Job getJob(JobID job) throws IOException { return null; }
For returning Job handle from JobID, we should find a way to get configuration 
of the job, through JobSubmissionProtocol.

3. 
{code}
+  public QueueInfo getQueue(String name) throws IOException { return null; }
+  public Metrics getClusterStatus() throws IOException { return null; }
{code}

For these apis, JobSubmissionProtocol should be modified to return QueueInfo 
and Metrics, instead of bigger objects JobQueueInfo and ClusterStatus, right?


> A method for finding and tracking jobs from the new API
> -------------------------------------------------------
>
>                 Key: MAPREDUCE-777
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-777
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: client
>            Reporter: Owen O'Malley
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 0.21.0
>
>         Attachments: m-777.patch, patch-777-1.txt, patch-777-2.txt, 
> patch-777.txt
>
>
> We need to create a replacement interface for the JobClient API in the new 
> interface. In particular, the user needs to be able to query and track jobs 
> that were launched by other processes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to