Skip to content

Commit a620d06

Browse files
maji2014conviva-zz
authored andcommitted
Update run-example
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 <[email protected]> Closes apache#1011 from maji2014/master and squashes the following commits: 2cc1af6 [maji2014] Update run-example Closes apache#988.
1 parent 68fa550 commit a620d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/run-example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [[ ! $EXAMPLE_CLASS == org.apache.spark.examples* ]]; then
5151
EXAMPLE_CLASS="org.apache.spark.examples.$EXAMPLE_CLASS"
5252
fi
5353

54-
./bin/spark-submit \
54+
"$FWDIR"/bin/spark-submit \
5555
--master $EXAMPLE_MASTER \
5656
--class $EXAMPLE_CLASS \
5757
"$SPARK_EXAMPLES_JAR" \

0 commit comments

Comments
 (0)