diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/Constants.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/Constants.java index 806e69f32c6b7..b0bd617524555 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/Constants.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/Constants.java @@ -46,7 +46,7 @@ public interface Constants { * Config key to specify the name of the default mount table. */ String CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE_NAME_KEY = - "fs.viewfs.mounttable.default.name.key"; + "fs.viewfs.mounttable.default-name-key"; /** * Config variable name for the default mount table. diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ViewFsOverloadScheme.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ViewFsOverloadScheme.md index 3b61f3ce75e1c..7bf53c5a17225 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ViewFsOverloadScheme.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/ViewFsOverloadScheme.md @@ -179,10 +179,10 @@ For example, when the following configuration is used but a path like `viewfs:/f ``` ### Solution -To avoid the above problem, the configuration `fs.viewfs.mounttable.default.name.key` has to be set to the name of the cluster, i.e, the following should be added to `core-site.xml` +To avoid the above problem, the configuration `fs.viewfs.mounttable.default-name-key` has to be set to the name of the cluster, i.e, the following should be added to `core-site.xml` ```xml - fs.viewfs.mounttable.default.name.key + fs.viewfs.mounttable.default-name-key cluster ```