[
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:
{code}
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
{code}
> 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.