File tree Expand file tree Collapse file tree 7 files changed +27
-195
lines changed Expand file tree Collapse file tree 7 files changed +27
-195
lines changed Original file line number Diff line number Diff line change 20
20
SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd ) "
21
21
SPARK_ROOT_DIR=" $( dirname $SCRIPT_DIR ) "
22
22
23
- ERRORS=$( $SCRIPT_DIR /../build/mvn -Pkubernetes -Pkinesis-asl -Pmesos -Pyarn -Phive -Phive-thriftserver checkstyle:check | grep ERROR)
23
+ ERRORS=$( $SCRIPT_DIR /../build/mvn -Phadoop-cloud - Pkubernetes -Pkinesis-asl -Pmesos -Pyarn -Phive -Phive-thriftserver checkstyle:check | grep ERROR)
24
24
25
25
if test ! -z " $ERRORS " ; then
26
26
echo -e " Checkstyle checks failed at following occurrences:\n$ERRORS "
Original file line number Diff line number Diff line change 142
142
echo " Spark version is $VERSION "
143
143
VERSION_SET=$( " $MVN " versions:set -DnewVersion=$VERSION | tail -n 1)
144
144
if [ " $MAKE_TGZ " == " true" ]; then
145
- echo " Making spark-dist- $VERSION - $NAME .tgz"
145
+ echo " Making spark-dist_2.11- $NAME - $VERSION .tgz"
146
146
else
147
147
echo " Making distribution for Spark $VERSION in '$DISTDIR '..."
148
148
fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -euo pipefail
4
- VERSION=$( git describe --tags)
5
- HADOOP_VERSION=$( ./build/mvn help:evaluate -Phadoop-palantir -Dexpression=hadoop.version 2> /dev/null\
6
- | grep -v " INFO" \
7
- | tail -n 1)
8
-
4
+ version=$( git describe --tags)
9
5
10
6
PALANTIR_FLAGS=(-Phadoop-cloud -Phadoop-palantir -Pkinesis-asl -Pkubernetes -Phive -Pyarn -Psparkr)
11
7
12
8
MVN_LOCAL=" ~/.m2/repository"
13
9
14
10
publish_artifacts () {
15
- ./build/mvn versions:set -DnewVersion=$VERSION
11
+ ./build/mvn versions:set -DnewVersion=$version
16
12
./build/mvn -DskipTests " ${PALANTIR_FLAGS[@]} " install clean
17
13
}
18
14
19
15
make_dist () {
20
- dist_name=" $1 "
21
- build_flags=" $2 "
22
- shift 2
23
- dist_version=" ${VERSION} -${dist_name} "
24
- file_name=" spark-dist-${dist_version} .tgz"
25
- ./dev/make-distribution.sh --name $dist_name --tgz " $@ " $build_flags
26
- mkdir -p $MVN_LOCAL /org/apache/spark/spark-dist/${dist_version} && \
27
- cp $file_name $MVN_LOCAL /org/apache/spark/spark-dist/${dist_version} /
16
+ build_flags=" $1 "
17
+ shift 1
18
+ artifact_name=" spark-dist_2.11-hadoop-palantir"
19
+ file_name=" ${artifact_name} -${version} .tgz"
20
+ ./dev/make-distribution.sh --name " hadoop-palantir" --tgz " $@ " $build_flags
21
+ mkdir -p $MVN_LOCAL /org/apache/spark/${artifact_name} /${version} && \
22
+ cp $file_name $MVN_LOCAL /org/apache/spark/${artifact_name} /${version} /
28
23
}
29
24
30
25
publish_artifacts
31
- make_dist hadoop- $HADOOP_VERSION " ${PALANTIR_FLAGS[*]} "
26
+ make_dist " ${PALANTIR_FLAGS[*]} "
Original file line number Diff line number Diff line change @@ -17,15 +17,13 @@ publish_artifacts() {
17
17
}
18
18
19
19
make_dist () {
20
- dist_name=" $1 "
21
- build_flags=" $2 "
22
- shift 2
23
- dist_version=" ${version} -${dist_name} "
24
- file_name=" spark-dist-${dist_version} .tgz"
25
- ./dev/make-distribution.sh --name $dist_name --tgz " $@ " $build_flags
26
- curl -u $BINTRAY_USERNAME :$BINTRAY_PASSWORD -T $file_name " https://api.bintray.com/content/palantir/releases/spark/${version} /org/apache/spark/spark-dist/${dist_version} /${file_name} "
20
+ build_flags=" $1 "
21
+ shift 1
22
+ artifact_name=" spark-dist_2.11-hadoop-palantir"
23
+ file_name=" ${artifact_name} -${version} .tgz"
24
+ ./dev/make-distribution.sh --name " hadoop-palantir" --tgz " $@ " $build_flags
25
+ curl -u $BINTRAY_USERNAME :$BINTRAY_PASSWORD -T $file_name " https://api.bintray.com/content/palantir/releases/spark/${version} /org/apache/spark/${artifact_name} /${version} /${file_name} "
27
26
}
28
27
29
28
publish_artifacts
30
- make_dist hadoop-2.8.0-palantir.8 " ${PALANTIR_FLAGS[*]} " --clean
31
- make_dist without-hadoop " -Phadoop-provided -Pkubernetes -Phive -Pyarn -Psparkr" --clean
29
+ make_dist " ${PALANTIR_FLAGS[*]} " --clean
Original file line number Diff line number Diff line change @@ -521,6 +521,14 @@ def __hash__(self):
521
521
sbt_test_goals = ["kubernetes/test" ]
522
522
)
523
523
524
+ cloud = Module (
525
+ name = "hadoop-cloud" ,
526
+ dependencies = [],
527
+ source_file_regexes = ["hadoop-cloud/" ],
528
+ build_profile_flags = ["-Phadoop-cloud" ],
529
+ sbt_test_goals = ["hadoop-cloud/test" ]
530
+ )
531
+
524
532
# The root module is a dummy module which is used to run all of the tests.
525
533
# No other modules should directly depend on this module.
526
534
root = Module (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 107
107
<module >external/kafka-0-10</module >
108
108
<module >external/kafka-0-10-assembly</module >
109
109
<module >external/kafka-0-10-sql</module >
110
- <module >dists/without-hadoop</module >
111
110
<module >dists/hadoop-palantir</module >
112
111
</modules >
113
112
You can’t perform that action at this time.
0 commit comments