Skip to content

Commit c07592e

Browse files
author
Andrew Or
committed
[HOT FIX] make-distribution.sh fails if Yarn shuffle jar DNE
This is introduced in #3147 and is failing builds without the `-Pyarn` profile. Author: Andrew Or <[email protected]> Closes #3250 from andrewor14/fix-yarn-shuffle-build and squashes the following commits: 42b3d37 [Andrew Or] Do not fail fast if Yarn shuffle jar does not exist (cherry picked from commit a0fa1ba) Signed-off-by: Andrew Or <[email protected]>
1 parent ff94283 commit c07592e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make-distribution.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DI
181181
# Copy jars
182182
cp "$FWDIR"/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/"
183183
cp "$FWDIR"/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/"
184-
cp "$FWDIR"/network/yarn/target/scala*/spark-*-yarn-shuffle.jar "$DISTDIR/lib/"
184+
# This will fail if the -Pyarn profile is not provided
185+
# In this case, silence the error and ignore the return code of this command
186+
cp "$FWDIR"/network/yarn/target/scala*/spark-*-yarn-shuffle.jar "$DISTDIR/lib/" &> /dev/null || :
185187

186188
# Copy example sources (needed for python and SQL)
187189
mkdir -p "$DISTDIR/examples/src/main"

0 commit comments

Comments
 (0)