Commit cb0cc1d8 authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-58 Corrections in Apache HDFS and Yarn init scripts.

parent c8242149
......@@ -20,7 +20,7 @@ STOP_COMMAND="$INSTALLATION_PATH/hadoop/sbin/stop-dfs.sh"
start(){
# Assert that there is no other Apache HDFS instance, created with this script, running.
[ -f $LOCKFILE ] && return
[ -f $LOCKFILE ] && return 0
# Execute the command to start Apache HDFS. The command waits until HDFS has been started.
sudo -u $SCRIPT_USER $START_COMMAND > /dev/null
......
......@@ -20,7 +20,7 @@ STOP_COMMAND="$INSTALLATION_PATH/hadoop/sbin/stop-yarn.sh"
start(){
# Assert that there is no other Apache Yarn instance, created with this script, running.
[-f $LOCKFILE ] && return 0
[ -f $LOCKFILE ] && return 0
# Execute the command to start Apache Yarn. The command waits until Yarn has been started.
sudo -u $SCRIPT_USER $START_COMMAND > /dev/null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment