Skip to content

Commit

Permalink
Update run-example
Browse files Browse the repository at this point in the history
Old code can only be ran under spark_home and use "bin/run-example".
 Error "./run-example: line 55: ./bin/spark-submit: No such file or directory" appears when running in other place. So change this

Author: maji2014 <maji3@asiainfo-linkage.com>

Closes apache#1011 from maji2014/master and squashes the following commits:

2cc1af6 [maji2014] Update run-example

Closes apache#988.
(cherry picked from commit e9261d0)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
  • Loading branch information
maji2014 authored and pwendell committed Jun 8, 2014
1 parent 39cfa9c commit 3f8450e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/run-example
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if [[ ! $EXAMPLE_CLASS == org.apache.spark.examples* ]]; then
EXAMPLE_CLASS="org.apache.spark.examples.$EXAMPLE_CLASS"
fi

./bin/spark-submit \
"$FWDIR"/bin/spark-submit \
--master $EXAMPLE_MASTER \
--class $EXAMPLE_CLASS \
"$SPARK_EXAMPLES_JAR" \
Expand Down

0 comments on commit 3f8450e

Please sign in to comment.