From 42b3d377d6cef5a95a64c7b4b2aff4596399c212 Mon Sep 17 00:00:00 2001 From: Andrew Or Date: Thu, 13 Nov 2014 11:00:35 -0800 Subject: [PATCH] Do not fail fast if Yarn shuffle jar does not exist --- make-distribution.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make-distribution.sh b/make-distribution.sh index 55cbdc14ac055..2267b1aa08a6c 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -181,7 +181,9 @@ echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DI # Copy jars cp "$FWDIR"/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/" cp "$FWDIR"/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/" -cp "$FWDIR"/network/yarn/target/scala*/spark-*-yarn-shuffle.jar "$DISTDIR/lib/" +# This will fail if the -Pyarn profile is not provided +# In this case, silence the error and ignore the return code of this command +cp "$FWDIR"/network/yarn/target/scala*/spark-*-yarn-shuffle.jar "$DISTDIR/lib/" &> /dev/null || : # Copy example sources (needed for python and SQL) mkdir -p "$DISTDIR/examples/src/main"