aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorWangTaoTheTonic <wangtao111@huawei.com>2015-03-28 12:32:35 +0000
committerSean Owen <sowen@cloudera.com>2015-03-28 12:32:35 +0000
commit99631438c0ec777d6a77974b148dbbd3e890260e (patch)
treeae582f7bbbb9ee2e18b1bae596f93e4906cafdbd /sbin
parent5909f0973de15f685836c2828e6d4c38f57d2c19 (diff)
downloadspark-99631438c0ec777d6a77974b148dbbd3e890260e.tar.gz
spark-99631438c0ec777d6a77974b148dbbd3e890260e.tar.bz2
spark-99631438c0ec777d6a77974b148dbbd3e890260e.zip
[SPARK-6552][Deploy][Doc]expose start-slave.sh to user and update outdated doc
https://issues.apache.org/jira/browse/SPARK-6552 /cc srowen Author: WangTaoTheTonic <wangtao111@huawei.com> Closes #5205 from WangTaoTheTonic/SPARK-6552 and squashes the following commits: b02263c [WangTaoTheTonic] use less than rather than less equal f0fa408 [WangTaoTheTonic] expose start-slave.sh
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/start-slave.sh10
-rwxr-xr-xsbin/start-slaves.sh2
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`"