hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodrigo Schmidt (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6827) Extend the API of NetworkTopology
Date Wed, 16 Jun 2010 23:42:24 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879583#action_12879583

Rodrigo Schmidt commented on HADOOP-6827:

I would like to extend it with the following API:

public String[] getRacks()  // returns the names of all racks in this topology
public int getRackSize(String  rackLocation) // returns the size of a rack
public int getIdInRack (Node  n) // returns the id (index in children) of a node n inside
its rack
public Node getNodeInRack (String  rackLocation, int id) // the opposite of getIdInRack

> Extend the API of NetworkTopology
> ---------------------------------
>                 Key: HADOOP-6827
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6827
>             Project: Hadoop Common
>          Issue Type: New Feature
>            Reporter: Rodrigo Schmidt
>            Assignee: Rodrigo Schmidt
> The current API for NetworkTopology is too restricted (and somehow biased towards the
default block placement algorithm). 
> For instance, it lacks methods to list racks or limit machines within a rack which are
fundamental for HDFS-1094.

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

View raw message