From 55444f8f2f27eaf1b09e5331b98630133b525eba Mon Sep 17 00:00:00 2001 From: teamconfx Date: Fri, 8 Sep 2023 18:25:31 +0800 Subject: [PATCH] change the name of the config parameter specifying default mounttable name key and related documentation --- .../src/main/java/org/apache/hadoop/fs/viewfs/Constants.java | 2 +- .../hadoop-hdfs/src/site/markdown/ViewFsOverloadScheme.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ```