[
https://issues.apache.org/jira/browse/HDFS-14220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810493#comment-16810493
]
Amithsha edited comment on HDFS-14220 at 4/5/19 5:06 AM:
---------------------------------------------------------
Yes, we had a scenario where 2 writes happening on the same rack which went bad.
So both the writing process for a block is slow. In this case, we modified the
code to specify the no of replicas per rack.
If this can be configurable then it will easy for the users to specify the no
based on their environment.
was (Author: amithsha):
Yes, we had a scenario where 2 writes happening on the same rack which went bad.
So both the writing process for a block is slow. In this case, we modified the
code to specify the no of replica per rack.
> Enable Replica Placement Value Per Rack
> ---------------------------------------
>
> Key: HDFS-14220
> URL: https://issues.apache.org/jira/browse/HDFS-14220
> Project: Hadoop HDFS
> Issue Type: New Feature
> Components: datanode
> Affects Versions: 2.7.1
> Reporter: Amithsha
> Priority: Trivial
>
> 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: [email protected]
For additional commands, e-mail: [email protected]