From 741b265c5fdda4d092b9ec118ac248ff95a34aa6 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Fri, 31 Jul 2020 11:06:45 +0200 Subject: [PATCH 1/2] HDDS-4052. Remove master/slave terminology from Ozone --- hadoop-hdds/docs/content/start/OnPrem.md | 2 +- hadoop-hdds/docs/content/start/OnPrem.zh.md | 2 +- hadoop-ozone/dist/src/shell/hdds/hadoop-daemons.sh | 2 +- hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-hdds/docs/content/start/OnPrem.md b/hadoop-hdds/docs/content/start/OnPrem.md index 243743acdb74..988f73676ccc 100644 --- a/hadoop-hdds/docs/content/start/OnPrem.md +++ b/hadoop-hdds/docs/content/start/OnPrem.md @@ -165,7 +165,7 @@ ozone om --init start-ozone.sh {{< /highlight >}} -This assumes that you have set up the slaves file correctly and ssh +This assumes that you have set up the `workers` file correctly and ssh configuration that allows ssh-ing to all data nodes. This is the same as the HDFS configuration, so please refer to HDFS documentation on how to set this up. diff --git a/hadoop-hdds/docs/content/start/OnPrem.zh.md b/hadoop-hdds/docs/content/start/OnPrem.zh.md index 2e367b8d9e39..948025e10bd5 100644 --- a/hadoop-hdds/docs/content/start/OnPrem.zh.md +++ b/hadoop-hdds/docs/content/start/OnPrem.zh.md @@ -151,4 +151,4 @@ ozone om --init start-ozone.sh {{< /highlight >}} -这么做的前提是,slaves 文件已经正确编写,并且配置好了到各个 Datanode 的 ssh,这和 HDFS 的配置方式相同,具体方法请查看 HDFS 文档。 +这么做的前提是,`workers` 文件已经正确编写,并且配置好了到各个 Datanode 的 ssh,这和 HDFS 的配置方式相同,具体方法请查看 HDFS 文档。 diff --git a/hadoop-ozone/dist/src/shell/hdds/hadoop-daemons.sh b/hadoop-ozone/dist/src/shell/hdds/hadoop-daemons.sh index 55304916ad1f..1d8096b4baae 100755 --- a/hadoop-ozone/dist/src/shell/hdds/hadoop-daemons.sh +++ b/hadoop-ozone/dist/src/shell/hdds/hadoop-daemons.sh @@ -16,7 +16,7 @@ # limitations under the License. -# Run a Hadoop command on all slave hosts. +# Run a Hadoop command on all worker hosts. function hadoop_usage { diff --git a/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh b/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh index b46045b2d8c0..769af336cac8 100755 --- a/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh +++ b/hadoop-ozone/dist/src/shell/hdds/hadoop-functions.sh @@ -999,7 +999,7 @@ function hadoop_connect_to_hosts # shellcheck disable=SC2124 local params="$@" local worker_file - local tmpslvnames + local tmp_worker_names # # ssh (or whatever) to a host @@ -1030,10 +1030,10 @@ function hadoop_connect_to_hosts else # no spaces allowed in the pdsh arg host list # shellcheck disable=SC2086 - tmpslvnames=$(echo ${HADOOP_WORKER_NAMES} | tr -s ' ' ,) + tmp_worker_names=$(echo ${HADOOP_WORKER_NAMES} | tr -s ' ' ,) PDSH_SSH_ARGS_APPEND="${HADOOP_SSH_OPTS}" pdsh \ -f "${HADOOP_SSH_PARALLEL}" \ - -w "${tmpslvnames}" $"${@// /\\ }" 2>&1 + -w "${tmp_worker_names}" $"${@// /\\ }" 2>&1 fi else if [[ -z "${HADOOP_WORKER_NAMES}" ]]; then From f9bf670146ceb13945b63eb42e2671daea037704 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Fri, 31 Jul 2020 14:44:51 +0200 Subject: [PATCH 2/2] trigger new CI check