Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update spark-daemon.sh
Since the previous command is : cd "$SPARK_PREFIX" , so we can call  spark-class  by "./bin/spark-class" instead of "$SPARK_PREFIX"/bin/spark-class
  • Loading branch information
baishuo committed Mar 21, 2014
commit a7c3da8d7dba299e4edb13a37a81766b9a2200df
2 changes: 1 addition & 1 deletion sbin/spark-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ case $startStop in
spark_rotate_log "$log"
echo starting $command, logging to $log
cd "$SPARK_PREFIX"
nohup nice -n $SPARK_NICENESS "$SPARK_PREFIX"/bin/spark-class $command "$@" >> "$log" 2>&1 < /dev/null &
nohup nice -n $SPARK_NICENESS ./bin/spark-class $command "$@" >> "$log" 2>&1 < /dev/null &
newpid=$!
echo $newpid > $pid
sleep 2
Expand Down