diff options
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/start-slave.sh | 10 | ||||
-rwxr-xr-x | sbin/start-slaves.sh | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sbin/start-slave.sh b/sbin/start-slave.sh index 2fc35309f4..c0155384f7 100755 --- a/sbin/start-slave.sh +++ b/sbin/start-slave.sh @@ -17,8 +17,14 @@ # limitations under the License. # -# Usage: start-slave.sh <worker#> <master-spark-URL> -# where <master-spark-URL> is like "spark://localhost:7077" +# Starts a slave on the machine this script is executed on. + +usage="Usage: start-slave.sh <worker#> <spark-master-URL> where <spark-master-URL> is like "spark://localhost:7077" + +if [ $# -lt 2 ]; then + echo $usage + exit 1 +fi sbin="`dirname "$0"`" sbin="`cd "$sbin"; pwd`" diff --git a/sbin/start-slaves.sh b/sbin/start-slaves.sh index 76316a3067..4356c03657 100755 --- a/sbin/start-slaves.sh +++ b/sbin/start-slaves.sh @@ -17,6 +17,8 @@ # limitations under the License. # +# Starts a slave instance on each machine specified in the conf/slaves file. + sbin="`dirname "$0"`" sbin="`cd "$sbin"; pwd`" |