Skip to content

Commit 18c7e4d

Browse files
author
Marcelo Vanzin
committed
Fix make-distribution.sh.
1 parent 2ce741f commit 18c7e4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make-distribution.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ if [ ! $(command -v "$MVN") ] ; then
127127
fi
128128

129129
VERSION=$("$MVN" help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "INFO" | tail -n 1)
130+
SCALA_VERSION=$("$MVN" help:evaluate -Dexpression=scala.binary.version 2>/dev/null | grep -v "INFO" | tail -n 1)
130131
SPARK_HADOOP_VERSION=$("$MVN" help:evaluate -Dexpression=hadoop.version $@ 2>/dev/null\
131132
| grep -v "INFO"\
132133
| tail -n 1)
@@ -196,7 +197,7 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
196197
# Copy jars
197198
cp "$SPARK_HOME"/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/"
198199
cp "$SPARK_HOME"/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/"
199-
cp "$SPARK_HOME"/launcher/target/scala*/spark-launcher*.jar "$DISTDIR/lib/"
200+
cp "$SPARK_HOME"/launcher/target/spark-launcher_$SCALA_VERSION-$VERSION.jar "$DISTDIR/lib/"
200201
# This will fail if the -Pyarn profile is not provided
201202
# In this case, silence the error and ignore the return code of this command
202203
cp "$SPARK_HOME"/network/yarn/target/scala*/spark-*-yarn-shuffle.jar "$DISTDIR/lib/" &> /dev/null || :

0 commit comments

Comments
 (0)