aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatei Zaharia <matei.zaharia@gmail.com>2013-09-10 23:19:53 -0700
committerMatei Zaharia <matei.zaharia@gmail.com>2013-09-10 23:19:53 -0700
commit8432f27fbed968995a2aa223907e9f16d99e536f (patch)
tree5ed1e5bba897bdf27b8dc54f38b7432c07777a73
parentd40f1403f38a406676f6999c7eb889f68c9dfe1d (diff)
parent45d964b60666a794ce8d6cc4e8451a3447327499 (diff)
downloadspark-8432f27fbed968995a2aa223907e9f16d99e536f.tar.gz
spark-8432f27fbed968995a2aa223907e9f16d99e536f.tar.bz2
spark-8432f27fbed968995a2aa223907e9f16d99e536f.zip
Merge pull request #923 from haoyuan/master
fix run-example script
-rwxr-xr-xrun-example8
1 files changed, 4 insertions, 4 deletions
diff --git a/run-example b/run-example
index 24d83ba5cf..08ec717ca5 100755
--- a/run-example
+++ b/run-example
@@ -39,14 +39,14 @@ fi
# to avoid the -sources and -doc packages that are built by publish-local.
EXAMPLES_DIR="$FWDIR"/examples
SPARK_EXAMPLES_JAR=""
-if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T].jar ]; then
+if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar ]; then
# Use the JAR from the SBT build
- export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T].jar`
+ export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar`
fi
-if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9T].jar ]; then
+if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9Tg].jar ]; then
# Use the JAR from the Maven build
# TODO: this also needs to become an assembly!
- export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9T].jar`
+ export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9Tg].jar`
fi
if [[ -z $SPARK_EXAMPLES_JAR ]]; then
echo "Failed to find Spark examples assembly in $FWDIR/examples/target" >&2