This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Supporting new binary folder location

  • Loading branch information...
pwendell committed Feb 2, 2014
1 parent b663e69 commit 215fb503d65bee884cc3c07217721aaa1713678f
Showing with 9 additions and 3 deletions.
  1. +9 −3 spark-standalone/setup.sh
View
@@ -1,5 +1,11 @@
#!/bin/bash
BIN_FOLDER="/root/spark/sbin"
if [[ "0.7.3 0.8.0 0.8.1" =~ $SPARK_VERSION ]]; then
BIN_FOLDER="/root/spark/bin"
fi
# Copy the slaves to spark conf
cp /root/spark-ec2/slaves /root/spark/conf/
/root/spark-ec2/copy-dir /root/spark/conf
@@ -13,15 +19,15 @@ echo "spark://""`cat /root/spark-ec2/masters`"":7077" > /root/spark-ec2/cluster-
# workers.
# Stop anything that is running
/root/spark/bin/stop-all.sh
$BIN_FOLDER/stop-all.sh
sleep 2
# Start Master
/root/spark/bin/start-master.sh
$BIN_FOLDER/start-master.sh
# Pause
sleep 20
# Start Workers
/root/spark/bin/start-slaves.sh
$BIN_FOLDER/start-slaves.sh

0 comments on commit 215fb50

Please sign in to comment.