[
https://issues.apache.org/jira/browse/HDDS-14385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051278#comment-18051278
]
Wei-Chiu Chuang commented on HDDS-14385:
----------------------------------------
{quote}Since NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY has a default null empty
value "org.apache.hadoop.net.ScriptBasedMapping"
{quote}
I didn't check, thanks for the feedback. Was the default value inherited from
core-default.xml from Hadoop?
> Incorrect net.topology.node.switch.mapping.impl default value
> -------------------------------------------------------------
>
> Key: HDDS-14385
> URL: https://issues.apache.org/jira/browse/HDDS-14385
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Wei-Chiu Chuang
> Assignee: Chen-Jheng Sing
> Priority: Minor
> Labels: pull-request-available
>
> The default value in the ozone-default.xml for the configuration property
> net.topology.node.switch.mapping.impl is incorrect.
> {noformat}
> <property>
> <name>net.topology.node.switch.mapping.impl</name>
> <value>org.apache.hadoop.net.ScriptBasedMapping</value>
> <tag>OZONE, SCM</tag>
> <description>
> The default implementation of the DNSToSwitchMapping. It
> invokes a script specified in net.topology.script.file.name to resolve
> node names. If the value for net.topology.script.file.name is not set,
> the
> default value of DEFAULT_RACK is returned for all node names.
> </description>
> </property>
> {noformat}
> Both OM and SCM 's default value is org.apache.hadoop.net.TableMapping:
> https://github.com/apache/ozone/blob/fd8948134efa1e96505d4446d4657f2ad5003396/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java#L729
> https://github.com/apache/ozone/blob/1dda9abfa979f3282d3355e154ce025f76d48665/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java#L365
> cc: [~sammichen] [~sarvekshayr]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]