diff options
author | Patrick Wendell <pwendell@gmail.com> | 2014-05-08 22:26:17 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-05-08 22:26:51 -0700 |
commit | f6323eb3bdee7e0d6caf73e672a3b197ec7a2131 (patch) | |
tree | e9b91278a9fd78adfd66572c70705cd6d9ea9de5 /bin/spark-class | |
parent | 7e1933451cde2c8f878fc6f39b862f5636586d6a (diff) | |
download | spark-f6323eb3bdee7e0d6caf73e672a3b197ec7a2131.tar.gz spark-f6323eb3bdee7e0d6caf73e672a3b197ec7a2131.tar.bz2 spark-f6323eb3bdee7e0d6caf73e672a3b197ec7a2131.zip |
SPARK-1565 (Addendum): Replace `run-example` with `spark-submit`.
Gives a nicely formatted message to the user when `run-example` is run to
tell them to use `spark-submit`.
Author: Patrick Wendell <pwendell@gmail.com>
Closes #704 from pwendell/examples and squashes the following commits:
1996ee8 [Patrick Wendell] Feedback form Andrew
3eb7803 [Patrick Wendell] Suggestions from TD
2474668 [Patrick Wendell] SPARK-1565 (Addendum): Replace `run-example` with `spark-submit`.
(cherry picked from commit 06b15baab25951d124bbe6b64906f4139e037deb)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
Diffstat (limited to 'bin/spark-class')
-rwxr-xr-x | bin/spark-class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spark-class b/bin/spark-class index 72f8b9bf9a..6480ccb58d 100755 --- a/bin/spark-class +++ b/bin/spark-class @@ -114,7 +114,7 @@ if [ ! -f "$FWDIR/RELEASE" ]; then jars_list=$(ls "$FWDIR"/assembly/target/scala-$SCALA_VERSION/ | grep "spark-assembly.*hadoop.*.jar") if [ "$num_jars" -eq "0" ]; then echo "Failed to find Spark assembly in $FWDIR/assembly/target/scala-$SCALA_VERSION/" >&2 - echo "You need to build Spark with 'sbt/sbt assembly' before running this program." >&2 + echo "You need to build Spark before running this program." >&2 exit 1 fi if [ "$num_jars" -gt "1" ]; then |