File tree Expand file tree Collapse file tree 11 files changed +87
-106
lines changed Expand file tree Collapse file tree 11 files changed +87
-106
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ jobs:
149
149
keys :
150
150
- build-binaries-{{ checksum "build/mvn" }}-{{ checksum "build/sbt" }}
151
151
- build-binaries-
152
- - run : ./build/mvn -DskipTests -Phadoop-cloud -Phadoop-palantir -Pkinesis-asl -Pkubernetes -Pyarn - Psparkr install
152
+ - run : ./build/mvn -DskipTests -Psparkr install
153
153
# Get sbt to run trivially, ensures its launcher is downloaded under build/
154
154
- run : ./build/sbt -h || true
155
155
- save_cache :
Original file line number Diff line number Diff line change 79
79
<artifactId >spark-avro_${scala.binary.version}</artifactId >
80
80
<version >${project.version} </version >
81
81
</dependency >
82
-
82
+ <dependency >
83
+ <groupId >org.apache.spark</groupId >
84
+ <artifactId >spark-hadoop-cloud_${scala.binary.version}</artifactId >
85
+ <version >${project.version} </version >
86
+ </dependency >
87
+ <!--
88
+ Redeclare this dependency to force it into the distribution.
89
+ -->
90
+ <dependency >
91
+ <groupId >org.eclipse.jetty</groupId >
92
+ <artifactId >jetty-util</artifactId >
93
+ <scope >${hadoop.deps.scope} </scope >
94
+ </dependency >
95
+ <dependency >
96
+ <groupId >org.apache.spark</groupId >
97
+ <artifactId >spark-yarn_${scala.binary.version}</artifactId >
98
+ <version >${project.version} </version >
99
+ </dependency >
100
+ <dependency >
101
+ <groupId >org.apache.spark</groupId >
102
+ <artifactId >spark-kubernetes_${scala.binary.version}</artifactId >
103
+ <version >${project.version} </version >
104
+ </dependency >
83
105
<!--
84
106
Because we don't shade dependencies anymore, we need to restore Guava to compile scope so
85
107
that the libraries Spark depend on have it available. We'll package the version that Spark
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ avro-1.8.2.jar
19
19
avro-ipc-1.8.2.jar
20
20
avro-mapred-1.8.2-hadoop2.jar
21
21
aws-java-sdk-bundle-1.11.201.jar
22
+ azure-data-lake-store-sdk-2.2.3.jar
22
23
azure-keyvault-core-0.8.0.jar
23
24
azure-storage-5.4.0.jar
24
25
breeze-macros_2.12-0.13.2.jar
@@ -66,6 +67,7 @@ hadoop-annotations-2.9.1-palantir.11.jar
66
67
hadoop-auth-2.9.1-palantir.11.jar
67
68
hadoop-aws-2.9.1-palantir.11.jar
68
69
hadoop-azure-2.9.1-palantir.11.jar
70
+ hadoop-azure-datalake-2.9.1-palantir.11.jar
69
71
hadoop-client-2.9.1-palantir.11.jar
70
72
hadoop-common-2.9.1-palantir.11.jar
71
73
hadoop-hdfs-client-2.9.1-palantir.11.jar
Original file line number Diff line number Diff line change 24
24
FWDIR=" $( cd " ` dirname " $0 " ` " /..; pwd) "
25
25
cd " $FWDIR "
26
26
27
- SPARK_PROFILES=" -Phadoop-palantir - Pmesos -Phadoop-cloud -Pkubernetes -Pyarn -Pspark-ganglia-lgpl -Pkinesis-asl -Phive-thriftserver -Phive"
27
+ SPARK_PROFILES=" -Pmesos -Pkubernetes -Pyarn -Pspark-ganglia-lgpl -Pkinesis-asl -Phive-thriftserver -Phive"
28
28
TOOLS_CLASSPATH=" $( build/sbt -DcopyDependencies=false " export tools/fullClasspath" | tail -n1) "
29
29
OLD_DEPS_CLASSPATH=" $( build/sbt -DcopyDependencies=false $SPARK_PROFILES " export oldDeps/fullClasspath" | tail -n1) "
30
30
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 --first-parent)
5
-
6
- PALANTIR_FLAGS=(-Phadoop-cloud -Phadoop-palantir -Pkinesis-asl -Pkubernetes -Pyarn -Psparkr)
7
4
5
+ FWDIR=" $( cd " ` dirname " ${BASH_SOURCE[0]} " ` " ; pwd) "
8
6
MVN_LOCAL=~ /.m2/repository
9
7
10
- publish_artifacts () {
11
- ./build/mvn versions:set -DnewVersion=$version
12
- ./build/mvn -DskipTests " ${PALANTIR_FLAGS[@]} " install
13
- }
8
+ source " $FWDIR /publish_functions.sh"
14
9
15
- make_dist () {
16
- build_flags=" $1 "
17
- shift 1
18
- hadoop_name=" hadoop-palantir"
19
- artifact_name=" spark-dist_2.12-${hadoop_name} "
20
- file_name=" spark-dist-${version} -${hadoop_name} .tgz"
21
- ./dev/make-distribution.sh --name " hadoop-palantir" --tgz " $@ " $build_flags
22
- mkdir -p $MVN_LOCAL /org/apache/spark/${artifact_name} /${version} && \
23
- cp $file_name $MVN_LOCAL /org/apache/spark/${artifact_name} /${version} /${artifact_name} -${version} .tgz
24
- }
10
+ set_version_and_install
11
+ DONT_BUILD=true make_dist
12
+ mkdir -p $MVN_LOCAL /org/apache/spark/${artifact_name} /${version}
13
+ cp $file_name $MVN_LOCAL /org/apache/spark/${artifact_name} /${version} /${artifact_name} -${version} .tgz
25
14
26
- publish_artifacts
27
- make_dist " ${PALANTIR_FLAGS[*]} "
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
7
7
source " $FWDIR /publish_functions.sh"
8
8
9
9
publish_artifacts | tee -a " /tmp/publish_artifacts.log"
10
- DONT_BUILD=true make_dist " ${PALANTIR_FLAGS[*]} " | tee -a " /tmp/make-dist.log"
10
+ DONT_BUILD=true make_dist_and_deploy | tee -a " /tmp/make-dist.log"
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
- PALANTIR_FLAGS=(-Phadoop-cloud -Phadoop-palantir -Pkinesis-asl -Pkubernetes -Pyarn - Psparkr)
5
+ PALANTIR_FLAGS=(-Psparkr)
6
6
7
7
get_version () {
8
8
git describe --tags --first-parent
@@ -14,6 +14,12 @@ set_version_and_package() {
14
14
./build/mvn -DskipTests " ${PALANTIR_FLAGS[@]} " package
15
15
}
16
16
17
+ set_version_and_install () {
18
+ version=$( get_version)
19
+ ./build/mvn versions:set -DnewVersion=" $version "
20
+ ./build/mvn -DskipTests " ${PALANTIR_FLAGS[@]} " install
21
+ }
22
+
17
23
publish_artifacts () {
18
24
tmp_settings=" tmp-settings.xml"
19
25
echo " <settings><servers><server>" > $tmp_settings
@@ -25,13 +31,15 @@ publish_artifacts() {
25
31
}
26
32
27
33
make_dist () {
28
- build_flags=" $1 "
29
- shift 1
30
34
version=$( get_version)
31
35
hadoop_name=" hadoop-palantir"
32
36
artifact_name=" spark-dist_2.12-${hadoop_name} "
33
37
file_name=" spark-dist-${version} -${hadoop_name} .tgz"
34
- ./dev/make-distribution.sh --name " hadoop-palantir" --tgz " $@ " $build_flags
38
+ ./dev/make-distribution.sh --name " hadoop-palantir" --tgz " $@ " " ${PALANTIR_FLAGS[@]} "
39
+ }
40
+
41
+ make_dist_and_deploy () {
42
+ make_dist
35
43
curl -u $BINTRAY_USERNAME :$BINTRAY_PASSWORD -T " $file_name " " https://api.bintray.com/content/palantir/releases/spark/${version} /org/apache/spark/${artifact_name} /${version} /${artifact_name} -${version} .tgz"
36
44
curl -u $BINTRAY_USERNAME :$BINTRAY_PASSWORD -X POST " https://api.bintray.com/content/palantir/releases/spark/${version} /publish"
37
45
}
Original file line number Diff line number Diff line change 21
21
# with failure (either resolution or compilation); the "q" makes SBT quit.
22
22
ERRORS=$( echo -e " q\n" \
23
23
| build/sbt \
24
- -Phadoop-palantir \
25
24
-Pkinesis-asl \
26
25
-Pmesos \
27
26
-Pkubernetes \
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export LC_ALL=C
29
29
# TODO: This would be much nicer to do in SBT, once SBT supports Maven-style resolution.
30
30
31
31
# NOTE: These should match those in the release publishing script
32
- HADOOP2_MODULE_PROFILES=" -Phadoop-cloud -Pkubernetes -Pkinesis-asl -Pyarn "
32
+ HADOOP2_MODULE_PROFILES=" "
33
33
MVN=" build/mvn"
34
34
HADOOP_PROFILES=(
35
35
hadoop-palantir
Original file line number Diff line number Diff line change 138
138
<dependency >
139
139
<groupId >org.apache.hadoop</groupId >
140
140
<artifactId >hadoop-azure</artifactId >
141
- <version >${hadoop.version} </version >
142
141
<scope >${hadoop.deps.scope} </scope >
143
142
<exclusions >
144
143
<exclusion >
159
158
</exclusion >
160
159
</exclusions >
161
160
</dependency >
161
+ <dependency >
162
+ <groupId >org.apache.hadoop</groupId >
163
+ <artifactId >hadoop-azure-datalake</artifactId >
164
+ <scope >${hadoop.deps.scope} </scope >
165
+ </dependency >
162
166
</dependencies >
163
167
164
168
<profiles >
165
- <profile >
166
- <id >hadoop-palantir</id >
167
- <dependencies >
168
- <dependency >
169
- <groupId >org.apache.hadoop</groupId >
170
- <artifactId >hadoop-azure-datalake</artifactId >
171
- <scope >${hadoop.deps.scope} </scope >
172
- </dependency >
173
- <dependency >
174
- <groupId >org.apache.hadoop</groupId >
175
- <artifactId >hadoop-azure</artifactId >
176
- <scope >${hadoop.deps.scope} </scope >
177
- </dependency >
178
- </dependencies >
179
- </profile >
180
-
181
169
<!--
182
170
Hadoop 3 simplifies the classpath, and adds a new committer base class which
183
171
enables store-specific committers.
You can’t perform that action at this time.
0 commit comments