hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth Yamijala (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MAPREDUCE-860) Modify Queue APIs to support a hierarchy of queues
Date Fri, 14 Aug 2009 07:51:14 GMT

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

Hemanth Yamijala commented on MAPREDUCE-860:
--------------------------------------------

A modification like this should work to return the entire tree in one RPC call:

{code}
public class JobQueueInfo {
  // other fields
  private JobQueueInfo[] children;

  public void readFields(DataInput in) throws IOException {
    // read other fields
    int count = in.readInt();
    children = new JobQueueInfo[count];
    for (int i=0; i<count; i++) {
      JobQueueInfo childQueueInfo = new JobQueueInfo();
      childQueueInfo.readFields(in);
      children[i] = childQueueInfo;
    }
  }

  public void write(DataOutput out) throws IOException {
    // write other fields
    out.writeInt(children.length);
    for (JobQueueInfo childQueueInfo : children) {
      childQueueInfo.write(out);
    }
  }
}
{code}

> Modify Queue APIs to support a hierarchy of queues
> --------------------------------------------------
>
>                 Key: MAPREDUCE-860
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-860
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: jobtracker
>            Reporter: Hemanth Yamijala
>            Assignee: rahul k singh
>
> MAPREDUCE-853 proposes to introduce a hierarchy of queues into the Map/Reduce framework.
This JIRA is for defining changes to the APIs related to queues.

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


Mime
View raw message