Repository: hadoop Updated Branches: refs/heads/HDFS-7240 fea91d27d -> 7213e9a6f
HDFS-12554. Ozone: Fix TestDatanodeStateMachine#testDatanodeStateMachineWithInvalidConfiguration. Contributed by Ajay Kumar. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7213e9a6 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7213e9a6 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7213e9a6 Branch: refs/heads/HDFS-7240 Commit: 7213e9a6f9e22c1f6b04cf1e9d38b9cfb35affe2 Parents: fea91d2 Author: Xiaoyu Yao <[email protected]> Authored: Wed Sep 27 15:44:04 2017 -0700 Committer: Xiaoyu Yao <[email protected]> Committed: Wed Sep 27 15:44:04 2017 -0700 ---------------------------------------------------------------------- .../java/org/apache/hadoop/ozone/web/utils/OzoneUtils.java | 2 +- .../hadoop-hdfs/src/site/markdown/OzoneGettingStarted.md.vm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/7213e9a6/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/utils/OzoneUtils.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/utils/OzoneUtils.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/utils/OzoneUtils.java index f3854f8..46949f0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/utils/OzoneUtils.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/utils/OzoneUtils.java @@ -270,7 +270,7 @@ public final class OzoneUtils { */ public static String getDatanodeIDPath(Configuration conf) { String dataNodeIDPath = conf.get(ScmConfigKeys.OZONE_SCM_DATANODE_ID); - if (Strings.isNullOrEmpty(dataNodeIDPath)) { + if (dataNodeIDPath == null) { String metaPath = conf.get(OzoneConfigKeys.OZONE_METADATA_DIRS); if (Strings.isNullOrEmpty(metaPath)) { // this means meta data is not found, in theory should not happen at http://git-wip-us.apache.org/repos/asf/hadoop/blob/7213e9a6/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/OzoneGettingStarted.md.vm ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/OzoneGettingStarted.md.vm b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/OzoneGettingStarted.md.vm index ec9d65c..18b89b2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/OzoneGettingStarted.md.vm +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/OzoneGettingStarted.md.vm @@ -139,9 +139,9 @@ place and not mingled with HDFS settings. ``` * _*ozone.scm.datanode.id*_ Each datanode that speaks to SCM generates an ID -just like HDFS. This ID is stored is a location pointed by this setting. If -this setting is not valid, datanodes will fail to come up. Please note: -This path that is will created by datanodes to store the datanode ID. Here is an example, +just like HDFS. This is an optional setting. Please note: +This path will be created by datanodes if it doesn't exist already. Here is an + example, ``` <property> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
