File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 37
37
if [ -z " $SPARK_SCALA_VERSION " ]; then
38
38
39
39
ASSEMBLY_DIR2=" $FWDIR /assembly/target/scala-2.11"
40
- # if scala-2.11 directory for assembly exists, we use that. Otherwise we default to
41
- # scala 2.10.
40
+ ASSEMBLY_DIR1=" $FWDIR /assembly/target/scala-2.10"
41
+
42
+ if [[ -d " $ASSEMBLY_DIR2 " && -d " $ASSEMBLY_DIR1 " ]]; then
43
+ echo -e " Presence of build for both scala versions(SCALA 2.10 and SCALA 2.11) detected." 1>&2
44
+ echo -e ' Either clean one of them or, export SPARK_SCALA_VERSION=2.11 in spark-env.sh.' 1>&2
45
+ exit 1
46
+ fi
47
+
42
48
if [ -d " $ASSEMBLY_DIR2 " ]; then
43
49
SPARK_SCALA_VERSION=" 2.11"
44
50
else
Original file line number Diff line number Diff line change 128
128
<groupId >org.eclipse.jetty</groupId >
129
129
<artifactId >jetty-server</artifactId >
130
130
</dependency >
131
- <dependency >
132
131
<dependency >
133
132
<groupId >org.apache.commons</groupId >
134
133
<artifactId >commons-math3</artifactId >
You can’t perform that action at this time.
0 commit comments