Repository: spark Updated Branches: refs/heads/master a71c6d1cf -> e9261d086
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 <ma...@asiainfo-linkage.com> Closes #1011 from maji2014/master and squashes the following commits: 2cc1af6 [maji2014] Update run-example Closes #988. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e9261d08 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e9261d08 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e9261d08 Branch: refs/heads/master Commit: e9261d0866a610eab29fa332726186b534d1018f Parents: a71c6d1 Author: maji2014 <ma...@asiainfo-linkage.com> Authored: Sun Jun 8 15:14:27 2014 -0700 Committer: Patrick Wendell <pwend...@gmail.com> Committed: Sun Jun 8 15:14:29 2014 -0700 ---------------------------------------------------------------------- bin/run-example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/e9261d08/bin/run-example ---------------------------------------------------------------------- diff --git a/bin/run-example b/bin/run-example index 7caab31..e7a5fe3 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" \