Skip to content

Commit

Permalink
[FLINK-11267][release] Only create hadoop-free binary by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Jan 9, 2019
1 parent 7a9a6ad commit ca9460b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tools/releasing/create_binary_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,15 @@ make_binary_release() {
cd ${FLINK_DIR}
}

HADOOP_CLASSIFIERS=("24" "26" "27" "28")
HADOOP_VERSIONS=("2.4.1" "2.6.5" "2.7.5" "2.8.3")

if [ "$SCALA_VERSION" == "none" ] && [ "$HADOOP_VERSION" == "none" ]; then
make_binary_release "" "-DwithoutHadoop" "2.12"
for i in "${!HADOOP_CLASSIFIERS[@]}"; do
make_binary_release "hadoop${HADOOP_CLASSIFIERS[$i]}" "-Dhadoop.version=${HADOOP_VERSIONS[$i]}" "2.12"
done
make_binary_release "" "-DwithoutHadoop" "2.11"
for i in "${!HADOOP_CLASSIFIERS[@]}"; do
make_binary_release "hadoop${HADOOP_CLASSIFIERS[$i]}" "-Dhadoop.version=${HADOOP_VERSIONS[$i]}" "2.11"
done
elif [ "$SCALA_VERSION" == none ] && [ "$HADOOP_VERSION" != "none" ]
then
make_binary_release "hadoop2" "-Dhadoop.version=$HADOOP_VERSION" "2.11"
elif [ "$SCALA_VERSION" != none ] && [ "$HADOOP_VERSION" == "none" ]
then
make_binary_release "" "-DwithoutHadoop" "$SCALA_VERSION"
for i in "${!HADOOP_CLASSIFIERS[@]}"; do
make_binary_release "hadoop${HADOOP_CLASSIFIERS[$i]}" "-Dhadoop.version=${HADOOP_VERSIONS[$i]}" "$SCALA_VERSION"
done
else
make_binary_release "hadoop2x" "-Dhadoop.version=$HADOOP_VERSION" "$SCALA_VERSION"
fi

0 comments on commit ca9460b

Please sign in to comment.