You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2017/05/16 16:28:05 UTC

[jira] [Commented] (HDFS-11833) HDFS architecture documentation describes outdated placement policy

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

Hudson commented on HDFS-11833:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11736 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11736/])
HDFS-11833. HDFS architecture documentation descibes outdated placement (aajisaka: rev 1d1c52b42feae5a4271ef4b771d0d8de43e83c15)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md


> HDFS architecture documentation describes outdated placement policy
> -------------------------------------------------------------------
>
>                 Key: HDFS-11833
>                 URL: https://issues.apache.org/jira/browse/HDFS-11833
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: dud
>            Assignee: Chen Liang
>            Priority: Minor
>              Labels: documentation
>             Fix For: 2.9.0, 3.0.0-alpha3, 2.8.2
>
>         Attachments: HADOOP-14411.001.patch, HADOOP-14411.002.patch
>
>
> Hello
> I've noticed inconsistencies in the default block placement policy between what one can read on several websites and what is stated in the [official documentation|https://git-wip-us.apache.org/repos/asf?p=hadoop.git;a=blob;f=hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md;h=bda53a9c77b41308eef3abf5b478158b2ea03be0;hb=HEAD#l105].
> After digging, I've found out that the proper default placement policy is :
> {code}
>  * The replica placement strategy is that if the writer is on a datanode,
>  * the 1st replica is placed on the local machine, 
>  * otherwise a random datanode. The 2nd replica is placed on a datanode
>  * that is on a different rack. The 3rd replica is placed on a datanode
>  * which is on a different node of the rack as the second replica.
>  {code}
> [source|https://git-wip-us.apache.org/repos/asf?p=hadoop.git;a=blob;f=hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java#l45]
> HADOOP-5734 has been opened regarding this mistake several years ago and has eventually been merged but unfortunately this fix has been overwritten by [~tucu00]  in [SVN commit|https://svn.apache.org/viewvc?view=revision&revision=1425527].
> dud



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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