Skip to content

Commit 09ea1e3

Browse files
committed
[WIP][SPARK-29250] Upgrade to Hadoop 3.2.1
1 parent 88e87bc commit 09ea1e3

File tree

15 files changed

+72
-73
lines changed

15 files changed

+72
-73
lines changed

common/network-yarn/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<!-- Provided dependencies -->
6666
<dependency>
6767
<groupId>org.apache.hadoop</groupId>
68-
<artifactId>hadoop-client</artifactId>
68+
<artifactId>hadoop-client-runtime</artifactId>
6969
</dependency>
7070
<dependency>
7171
<groupId>org.slf4j</groupId>

core/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</dependency>
6767
<dependency>
6868
<groupId>org.apache.hadoop</groupId>
69-
<artifactId>hadoop-client</artifactId>
69+
<artifactId>hadoop-client-runtime</artifactId>
7070
</dependency>
7171
<dependency>
7272
<groupId>org.apache.spark</groupId>
@@ -177,6 +177,14 @@
177177
<groupId>org.apache.commons</groupId>
178178
<artifactId>commons-text</artifactId>
179179
</dependency>
180+
<dependency>
181+
<groupId>commons-io</groupId>
182+
<artifactId>commons-io</artifactId>
183+
</dependency>
184+
<dependency>
185+
<groupId>commons-collections</groupId>
186+
<artifactId>commons-collections</artifactId>
187+
</dependency>
180188
<dependency>
181189
<groupId>com.google.code.findbugs</groupId>
182190
<artifactId>jsr305</artifactId>

external/kafka-0-10-assembly/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</dependency>
7272
<dependency>
7373
<groupId>org.apache.hadoop</groupId>
74-
<artifactId>hadoop-client</artifactId>
74+
<artifactId>hadoop-client-runtime</artifactId>
7575
<scope>provided</scope>
7676
</dependency>
7777
<dependency>

external/kafka-0-10-sql/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
<artifactId>kafka-clients</artifactId>
8080
<version>${kafka.version}</version>
8181
</dependency>
82+
<dependency>
83+
<groupId>com.google.code.findbugs</groupId>
84+
<artifactId>jsr305</artifactId>
85+
</dependency>
8286
<dependency>
8387
<groupId>org.apache.commons</groupId>
8488
<artifactId>commons-pool2</artifactId>

external/kafka-0-10-token-provider/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
<groupId>org.apache.spark</groupId>
6363
<artifactId>spark-tags_${scala.binary.version}</artifactId>
6464
</dependency>
65+
<dependency>
66+
<groupId>org.apache.hadoop</groupId>
67+
<artifactId>hadoop-client-runtime</artifactId>
68+
</dependency>
6569

6670
<!--
6771
This spark-tags test-dep is needed even though it isn't used in this module, otherwise testing-cmds that exclude

external/kinesis-asl-assembly/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</dependency>
9292
<dependency>
9393
<groupId>org.apache.hadoop</groupId>
94-
<artifactId>hadoop-client</artifactId>
94+
<artifactId>hadoop-client-runtime</artifactId>
9595
<scope>provided</scope>
9696
</dependency>
9797
<dependency>

hadoop-cloud/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</dependency>
5959
<dependency>
6060
<groupId>org.apache.hadoop</groupId>
61-
<artifactId>hadoop-client</artifactId>
61+
<artifactId>hadoop-client-runtime</artifactId>
6262
<version>${hadoop.version}</version>
6363
<scope>provided</scope>
6464
</dependency>

launcher/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<!-- Not needed by the test code, but referenced by SparkSubmit which is used by the tests. -->
8282
<dependency>
8383
<groupId>org.apache.hadoop</groupId>
84-
<artifactId>hadoop-client</artifactId>
84+
<artifactId>hadoop-client-runtime</artifactId>
8585
<scope>test</scope>
8686
</dependency>
8787
</dependencies>

pom.xml

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<sbt.project.name>spark</sbt.project.name>
121121
<slf4j.version>1.7.30</slf4j.version>
122122
<log4j.version>1.2.17</log4j.version>
123-
<hadoop.version>3.2.0</hadoop.version>
123+
<hadoop.version>3.2.1</hadoop.version>
124124
<protobuf.version>2.5.0</protobuf.version>
125125
<yarn.version>${hadoop.version}</yarn.version>
126126
<zookeeper.version>3.4.14</zookeeper.version>
@@ -855,6 +855,11 @@
855855
<artifactId>javax.ws.rs-api</artifactId>
856856
<version>2.0.1</version>
857857
</dependency>
858+
<dependency>
859+
<groupId>javax.xml.bind</groupId>
860+
<artifactId>jaxb-api</artifactId>
861+
<version>2.2.11</version>
862+
</dependency>
858863
<dependency>
859864
<groupId>org.scalanlp</groupId>
860865
<artifactId>breeze_${scala.binary.version}</artifactId>
@@ -1065,7 +1070,13 @@
10651070
</dependency>
10661071
<dependency>
10671072
<groupId>org.apache.hadoop</groupId>
1068-
<artifactId>hadoop-client</artifactId>
1073+
<artifactId>hadoop-client-runtime</artifactId>
1074+
<version>${hadoop.version}</version>
1075+
<scope>${hadoop.deps.scope}</scope>
1076+
</dependency>
1077+
<dependency>
1078+
<groupId>org.apache.hadoop</groupId>
1079+
<artifactId>hadoop-client-api</artifactId>
10691080
<version>${hadoop.version}</version>
10701081
<scope>${hadoop.deps.scope}</scope>
10711082
<exclusions>
@@ -1288,49 +1299,8 @@
12881299
</dependency>
12891300
<dependency>
12901301
<groupId>org.apache.hadoop</groupId>
1291-
<artifactId>hadoop-yarn-common</artifactId>
1292-
<version>${yarn.version}</version>
1293-
<scope>${hadoop.deps.scope}</scope>
1294-
<exclusions>
1295-
<exclusion>
1296-
<groupId>asm</groupId>
1297-
<artifactId>asm</artifactId>
1298-
</exclusion>
1299-
<exclusion>
1300-
<groupId>org.ow2.asm</groupId>
1301-
<artifactId>asm</artifactId>
1302-
</exclusion>
1303-
<exclusion>
1304-
<groupId>org.jboss.netty</groupId>
1305-
<artifactId>netty</artifactId>
1306-
</exclusion>
1307-
<exclusion>
1308-
<groupId>javax.servlet</groupId>
1309-
<artifactId>servlet-api</artifactId>
1310-
</exclusion>
1311-
<exclusion>
1312-
<groupId>commons-logging</groupId>
1313-
<artifactId>commons-logging</artifactId>
1314-
</exclusion>
1315-
<exclusion>
1316-
<groupId>com.sun.jersey</groupId>
1317-
<artifactId>*</artifactId>
1318-
</exclusion>
1319-
<exclusion>
1320-
<groupId>com.sun.jersey.jersey-test-framework</groupId>
1321-
<artifactId>*</artifactId>
1322-
</exclusion>
1323-
<exclusion>
1324-
<groupId>com.sun.jersey.contribs</groupId>
1325-
<artifactId>*</artifactId>
1326-
</exclusion>
1327-
</exclusions>
1328-
</dependency>
1329-
<dependency>
1330-
<groupId>org.apache.hadoop</groupId>
1331-
<artifactId>hadoop-yarn-server-tests</artifactId>
1302+
<artifactId>hadoop-client-minicluster</artifactId>
13321303
<version>${yarn.version}</version>
1333-
<classifier>tests</classifier>
13341304
<scope>test</scope>
13351305
<exclusions>
13361306
<exclusion>
@@ -1642,6 +1612,14 @@
16421612
<groupId>org.apache.ant</groupId>
16431613
<artifactId>ant</artifactId>
16441614
</exclusion>
1615+
<exclusion>
1616+
<groupId>org.apache.hadoop</groupId>
1617+
<artifactId>hadoop-common</artifactId>
1618+
</exclusion>
1619+
<exclusion>
1620+
<groupId>org.apache.hadoop</groupId>
1621+
<artifactId>hadoop-auth</artifactId>
1622+
</exclusion>
16451623
<exclusion>
16461624
<groupId>org.apache.zookeeper</groupId>
16471625
<artifactId>zookeeper</artifactId>

resource-managers/yarn/pom.xml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,7 @@
6969
</dependency>
7070
<dependency>
7171
<groupId>org.apache.hadoop</groupId>
72-
<artifactId>hadoop-yarn-api</artifactId>
73-
</dependency>
74-
<dependency>
75-
<groupId>org.apache.hadoop</groupId>
76-
<artifactId>hadoop-yarn-common</artifactId>
77-
</dependency>
78-
<dependency>
79-
<groupId>org.apache.hadoop</groupId>
80-
<artifactId>hadoop-yarn-server-web-proxy</artifactId>
81-
</dependency>
82-
<dependency>
83-
<groupId>org.apache.hadoop</groupId>
84-
<artifactId>hadoop-yarn-client</artifactId>
85-
</dependency>
86-
<dependency>
87-
<groupId>org.apache.hadoop</groupId>
88-
<artifactId>hadoop-client</artifactId>
72+
<artifactId>hadoop-client-runtime</artifactId>
8973
</dependency>
9074

9175
<!-- Explicit listing of transitive deps that are shaded. Otherwise, odd compiler crashes. -->
@@ -137,8 +121,7 @@
137121

138122
<dependency>
139123
<groupId>org.apache.hadoop</groupId>
140-
<artifactId>hadoop-yarn-server-tests</artifactId>
141-
<classifier>tests</classifier>
124+
<artifactId>hadoop-client-minicluster</artifactId>
142125
<scope>test</scope>
143126
</dependency>
144127

0 commit comments

Comments
 (0)