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:
parent
27ffd43b64
commit
015abcd8ce
@ -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" \
|
||||
|
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user