[
https://issues.apache.org/jira/browse/HDFS-11530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962704#comment-15962704
]
Yiqun Lin edited comment on HDFS-11530 at 4/10/17 10:59 AM:
------------------------------------------------------------
It seems that some tests are still failed due to different {{BlockPlacement}}
plociy used in HDFS.
For example when the different policy {{BlockPlacementPolicyWithNodeGroup}}
used, it will
cast networkTopology instance to {{NetworkTopologyWithNodeGroup}} and then test
will be failed,
I am thinking one reasonable way that we can use {{DFSNetworkTopology}} only if
the current block placement is the default
way(BlockPlacementPolicyRackFaultTolerant). Otherwise, we use the
{{NetworkTopology#getInstance(conf)}}.
Attach the updated patch.
Any comments? [~vagarychen], [~arpitagarwal].
was (Author: linyiqun):
It seems that some tests are still failed due to different {{BlockPlacement}}
plociy used in HDFS.
I am thinking one reasonable way that we can use {{DFSNetworkTopology}} only if
the current block placement is the default
way(BlockPlacementPolicyRackFaultTolerant). Otherwise, we use the
{{NetworkTopology#getInstance(conf)}}.
Attach the updated patch.
Any comments? [~vagarychen], [~arpitagarwal].
> Use HDFS specific network topology to choose datanode in
> BlockPlacementPolicyDefault
> ------------------------------------------------------------------------------------
>
> Key: HDFS-11530
> URL: https://issues.apache.org/jira/browse/HDFS-11530
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Affects Versions: 3.0.0-alpha2
> Reporter: Yiqun Lin
> Assignee: Yiqun Lin
> Attachments: HDFS-11530.001.patch, HDFS-11530.002.patch,
> HDFS-11530.003.patch, HDFS-11530.004.patch, HDFS-11530.005.patch,
> HDFS-11530.006.patch
>
>
> The work for {{chooseRandomWithStorageType}} has been merged in HDFS-11482.
> But this method is contained in new topology {{DFSNetworkTopology}} which is
> specified for HDFS. We should update this and let
> {{BlockPlacementPolicyDefault}} use the new way since the original way is
> inefficient.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]