diff options
author | maji2014 <maji3@asiainfo-linkage.com> | 2014-06-08 15:14:27 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-06-08 15:14:29 -0700 |
commit | e9261d0866a610eab29fa332726186b534d1018f (patch) | |
tree | f1545dd254c51c8e5d0e0fcc95a3716b106a02f2 /bin | |
parent | a71c6d1cf0bbc027f633a65042191cf2201330d6 (diff) | |
download | spark-e9261d0866a610eab29fa332726186b534d1018f.tar.gz spark-e9261d0866a610eab29fa332726186b534d1018f.tar.bz2 spark-e9261d0866a610eab29fa332726186b534d1018f.zip |
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 <maji3@asiainfo-linkage.com>
Closes #1011 from maji2014/master and squashes the following commits:
2cc1af6 [maji2014] Update run-example
Closes #988.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/run-example | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/run-example b/bin/run-example index 7caab31dae..e7a5fe3914 100755 --- a/bin/run-example +++ b/bin/run-example @@ -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" \ |