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 "He Tianyi (JIRA)" <ji...@apache.org> on 2015/10/02 15:02:26 UTC

[jira] [Commented] (HDFS-9149) Consider multi datacenter when sortByDistance

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

He Tianyi commented on HDFS-9149:
---------------------------------

I think that's a good point [~hexiaoqiao].

One simple idea is generalizes {{getWeight}} into a function that calculates distance between two locations (more like {{getDistance}}), regardless of the meaning of each hierarchy. 

The only thing is that, I'm not aware why did {{getWeight}} designed to be like this in the first place, i.e. whether there is some particular concern. 
Does someone know the idea behind this design choice?

> Consider multi datacenter when sortByDistance
> ---------------------------------------------
>
>                 Key: HDFS-9149
>                 URL: https://issues.apache.org/jira/browse/HDFS-9149
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: He Xiaoqiao
>            Assignee: He Tianyi
>
> {{sortByDistance}} doesn't consider multi-datacenter when read data, so there my be reading data via other datacenter when hadoop deployment with multi-IDC.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)