[ 
https://issues.apache.org/jira/browse/HDFS-14220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16855263#comment-16855263
 ] 

Ayush Saxena commented on HDFS-14220:
-------------------------------------

Thanx [~elgoiri], Yes I guess RackFaultTolerant Policy also places replicas in 
maximum possible racks,
[~Amithsha] does these solve your purpose?  Or is there something can't be done 
this way which we are missing?

> Enable Replica Placement Value Per Rack
> ---------------------------------------
>
>                 Key: HDFS-14220
>                 URL: https://issues.apache.org/jira/browse/HDFS-14220
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>    Affects Versions: 2.7.1
>            Reporter: Amithsha
>            Assignee: Ayush Saxena
>            Priority: Major
>         Attachments: HDFS-14220-01.patch, HDFS-14220-02.patch
>
>
> By default, Replica placement per rack will be taken care by  
> BlockPlacementPolicyDefault.java .
> With 2 if conditions 
>  # numOfRacks <1 
>  # numOfRacks > 1
> and the placement will happen as 1 on localrack, 2 on remote rack.
> If a user needs max of 1 replica per rack then 
> BlockPlacementPolicyDefault.java modification is needed instead we can add a 
> property to specify the placement policy and replica value per rack.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to