HDFS-12576. JournalNodes are getting started, even though dfs.namenode.shared.edits.dir is not configured. Contributed by Bharat Viswanadham.

This commit is contained in:
Anu Engineer 2017-10-02 15:40:00 -07:00
parent 27ffd43b64
commit 015abcd8ce
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ fi
JOURNAL_NODES=$("${HADOOP_HDFS_HOME}/bin/hdfs" getconf -journalNodes 2>&-)
if [[ "{$JOURNAL_NODES-}" != $'\n' ]]; then
if [[ "${#JOURNAL_NODES}" != 0 ]]; then
echo "Starting journal nodes [${JOURNAL_NODES}]"
hadoop_uservar_su hdfs journalnode "${HADOOP_HDFS_HOME}/bin/hdfs" \

View File

@ -102,7 +102,7 @@ fi
JOURNAL_NODES=$("${HADOOP_HDFS_HOME}/bin/hdfs" getconf -journalNodes 2>&-)
if [[ "{$JOURNAL_NODES-}" != $'\n' ]]; then
if [[ "${#JOURNAL_NODES}" != 0 ]]; then
echo "Stopping journal nodes [${JOURNAL_NODES}]"
hadoop_uservar_su hdfs journalnode "${HADOOP_HDFS_HOME}/bin/hdfs" \