Skip to content

Commit

Permalink
Quote params
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokturk Gezer committed Jul 3, 2019
1 parent ef54750 commit fedd801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/alluxio-monitor.sh
Expand Up @@ -175,19 +175,19 @@ run_monitors() {
nodes=$(echo -e "${nodes}" | tail -n+2)
if [[ $? -ne 0 ]]; then
# if there is an error, print the log tail for the remaining master nodes.
batch_run_on_nodes "$(echo ${nodes})" "${BIN}/alluxio-monitor.sh" -L ${node_type}
batch_run_on_nodes "$(echo ${nodes})" "${BIN}/alluxio-monitor.sh" -L "${node_type}"
else
HA_ENABLED=$(${BIN}/alluxio getConf ${ALLUXIO_MASTER_JAVA_OPTS} alluxio.zookeeper.enabled)
JOURNAL_TYPE=$(${BIN}/alluxio getConf ${ALLUXIO_MASTER_JAVA_OPTS} alluxio.master.journal.type | awk '{print toupper($0)}')
if [[ ${JOURNAL_TYPE} == "EMBEDDED" ]]; then
HA_ENABLED="true"
fi
if [[ ${HA_ENABLED} == "true" ]]; then
batch_run_on_nodes "$(echo ${nodes})" "${BIN}/alluxio-monitor.sh" ${mode} ${node_type}
batch_run_on_nodes "$(echo ${nodes})" "${BIN}/alluxio-monitor.sh" "${mode}" "${node_type}"
fi
fi
else
batch_run_on_nodes "$(echo ${nodes})" "${BIN}/alluxio-monitor.sh" ${mode} ${node_type}
batch_run_on_nodes "$(echo ${nodes})" "${BIN}/alluxio-monitor.sh" "${mode}" "${node_type}"
fi
}

Expand Down

0 comments on commit fedd801

Please sign in to comment.