File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,6 @@ function dev_classpath {
76
76
CLASSPATH=" $CLASSPATH :$jar "
77
77
done
78
78
79
- # Figure out the JAR file that our examples were packaged into. This includes a bit of a hack
80
- # to avoid the -sources and -doc packages that are built by publish-local.
81
- if [ -e " $EXAMPLES_DIR /target/scala-$SCALA_VERSION /spark-examples" * [0-9T].jar ]; then
82
- # Use the JAR from the SBT build
83
- export SPARK_EXAMPLES_JAR=` ls " $EXAMPLES_DIR /target/scala-$SCALA_VERSION /spark-examples" * [0-9T].jar`
84
- fi
85
- if [ -e " $EXAMPLES_DIR /target/spark-examples" * [0-9T].jar ]; then
86
- # Use the JAR from the Maven build
87
- export SPARK_EXAMPLES_JAR=` ls " $EXAMPLES_DIR /target/spark-examples" * [0-9T].jar`
88
- fi
89
-
90
79
# Add Scala standard library
91
80
if [ -z " $SCALA_LIBRARY_PATH " ]; then
92
81
if [ -z " $SCALA_HOME " ]; then
Original file line number Diff line number Diff line change 17
17
# limitations under the License.
18
18
#
19
19
20
+ SCALA_VERSION=2.9.3
21
+
20
22
# Figure out where the Scala framework is installed
21
23
FWDIR=" $( cd ` dirname $0 ` ; pwd) "
22
24
@@ -136,6 +138,17 @@ if [ ! -f "$FWDIR/RELEASE" ]; then
136
138
echo " You need to compile Spark repl module before running this program" >&2
137
139
exit 1
138
140
fi
141
+
142
+ # Figure out the JAR file that our examples were packaged into. This includes a bit of a hack
143
+ # to avoid the -sources and -doc packages that are built by publish-local.
144
+ if [ -e " $EXAMPLES_DIR /target/scala-$SCALA_VERSION /spark-examples" * [0-9T].jar ]; then
145
+ # Use the JAR from the SBT build
146
+ export SPARK_EXAMPLES_JAR=` ls " $EXAMPLES_DIR /target/scala-$SCALA_VERSION /spark-examples" * [0-9T].jar`
147
+ fi
148
+ if [ -e " $EXAMPLES_DIR /target/spark-examples" * [0-9T].jar ]; then
149
+ # Use the JAR from the Maven build
150
+ export SPARK_EXAMPLES_JAR=` ls " $EXAMPLES_DIR /target/spark-examples" * [0-9T].jar`
151
+ fi
139
152
fi
140
153
141
154
# Compute classpath using external script
You can’t perform that action at this time.
0 commit comments