Skip to content

Commit

Permalink
More checks for tachyon script
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed Mar 18, 2014
1 parent 111e8e1 commit f2f9bc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sbin/start-slaves.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ START_TACHYON=false
while (( "$#" )); do
case $1 in
--with-tachyon)
if [ ! -e "$sbin"/tachyon/bin/tachyon ]; then
echo "Error: --with-tachyon specified, but tachyon not found."
exit -1
fi
START_TACHYON=true
;;
esac
Expand Down
4 changes: 3 additions & 1 deletion sbin/stop-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ sbin=`cd "$sbin"; pwd`

"$sbin"/spark-daemon.sh stop org.apache.spark.deploy.master.Master 1

"$sbin"/tachyon/bin/tachyon killAll tachyon.master.Master
if [ -e "$sbin"/tachyon/bin/tachyon ]; then
"$sbin"/tachyon/bin/tachyon killAll tachyon.master.Master
fi

0 comments on commit f2f9bc6

Please sign in to comment.