Skip to content

Commit

Permalink
Generalize the yarn profile to hadoop versions 2.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed May 6, 2014
1 parent 88f192d commit 6740126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ if [[ "$SPARK_YARN" == "true" ]]; then
[[ "$SPARK_HADOOP_VERSION" =~ ^1\.[0-9]\. ]] ||
[[ "$SPARK_HADOOP_VERSION" =~ ^2\.[0-1]\. ]]; then
BUILD_COMMAND="$BUILD_COMMAND -Pyarn-alpha"
# For hadoop versions 2.2.x to 2.4.x, use the yarn profile
elif [[ "$SPARK_HADOOP_VERSION" =~ ^2.[2-4]. ]]; then
# For hadoop versions 2.2+, use the yarn profile
elif [[ "$SPARK_HADOOP_VERSION" =~ ^2.[2-9]. ]]; then
BUILD_COMMAND="$BUILD_COMMAND -Pyarn"
fi
BUILD_COMMAND="$BUILD_COMMAND -Dyarn.version=$SPARK_HADOOP_VERSION"
Expand Down

0 comments on commit 6740126

Please sign in to comment.