aboutsummaryrefslogtreecommitdiff
path: root/bin/run-example
diff options
context:
space:
mode:
authorshane-huang <shengsheng.huang@intel.com>2013-09-23 16:13:46 +0800
committershane-huang <shengsheng.huang@intel.com>2013-09-23 16:13:46 +0800
commit1d53792a0a48695824c29274be84b74d8d6a2e6a (patch)
treeb4949d671593b2b37b839fcb96bbb0e5c997d0ea /bin/run-example
parent1d1a6258008fa6d0e3aeeee35169315e441ec2c5 (diff)
downloadspark-1d53792a0a48695824c29274be84b74d8d6a2e6a.tar.gz
spark-1d53792a0a48695824c29274be84b74d8d6a2e6a.tar.bz2
spark-1d53792a0a48695824c29274be84b74d8d6a2e6a.zip
add scripts in bin
Signed-off-by: shane-huang <shengsheng.huang@intel.com>
Diffstat (limited to 'bin/run-example')
-rwxr-xr-xbin/run-example4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/run-example b/bin/run-example
index 08ec717ca5..f29bb2c015 100755
--- a/bin/run-example
+++ b/bin/run-example
@@ -20,7 +20,7 @@
SCALA_VERSION=2.9.3
# Figure out where the Scala framework is installed
-FWDIR="$(cd `dirname $0`; pwd)"
+FWDIR="$(cd `dirname $0`/..; pwd)"
# Export this as SPARK_HOME
export SPARK_HOME="$FWDIR"
@@ -56,7 +56,7 @@ fi
# Since the examples JAR ideally shouldn't include spark-core (that dependency should be
# "provided"), also add our standard Spark classpath, built using compute-classpath.sh.
-CLASSPATH=`$FWDIR/bin/compute-classpath.sh`
+CLASSPATH=`$FWDIR/sbin/compute-classpath.sh`
CLASSPATH="$SPARK_EXAMPLES_JAR:$CLASSPATH"
# Find java binary