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:15:07 -0700 |
commit | 3f8450ec67fe84c290d725d4ebfcf9f5a7b0b109 (patch) | |
tree | 7d0d03dbb0f6066e8bce8fc0a006362d2cf3be15 | |
parent | 39cfa9c0be34d4baf9de4eb9f9191c7b406c4d59 (diff) | |
download | spark-3f8450ec67fe84c290d725d4ebfcf9f5a7b0b109.tar.gz spark-3f8450ec67fe84c290d725d4ebfcf9f5a7b0b109.tar.bz2 spark-3f8450ec67fe84c290d725d4ebfcf9f5a7b0b109.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.
(cherry picked from commit e9261d0866a610eab29fa332726186b534d1018f)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
-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" \ |