Skip to content

Commit 4c45909

Browse files
committed
HADOOP-19084. Prune hadoop-common transitive dependencies (#6574)
Exclude more artifacts which are dependencies of hadoop-* modules, with the goal of keeping conflict out of downstream applications. In particular we have pruned the dependencies of of: -zookeeper -other libraries referencing logging This keeps slf4j-log4j12 and log4j12 off the classpath of applications importing hadoop-common. Somehow logback references do still surface; applications pulling in hadoop-common directly or indirectly should review their imports carefully. Contributed by Steve Loughran
1 parent a897e74 commit 4c45909

File tree

2 files changed

+29
-36
lines changed
  • hadoop-project
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-mawo/hadoop-yarn-applications-mawo-core

2 files changed

+29
-36
lines changed

hadoop-project/pom.xml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
<commons-csv.version>1.9.0</commons-csv.version>
127127
<commons-io.version>2.14.0</commons-io.version>
128128
<commons-lang3.version>3.12.0</commons-lang3.version>
129-
<commons-logging.version>1.1.3</commons-logging.version>
129+
<commons-logging.version>1.2</commons-logging.version>
130130
<commons-math3.version>3.6.1</commons-math3.version>
131131
<commons-net.version>3.9.0</commons-net.version>
132132
<commons-text.version>1.10.0</commons-text.version>
@@ -1435,15 +1435,11 @@
14351435
</exclusion>
14361436
<exclusion>
14371437
<groupId>io.netty</groupId>
1438-
<artifactId>netty-all</artifactId>
1439-
</exclusion>
1440-
<exclusion>
1441-
<groupId>io.netty</groupId>
1442-
<artifactId>netty-handler</artifactId>
1438+
<artifactId>*</artifactId>
14431439
</exclusion>
14441440
<exclusion>
1445-
<groupId>io.netty</groupId>
1446-
<artifactId>netty-transport-native-epoll</artifactId>
1441+
<groupId>commons-io</groupId>
1442+
<artifactId>commons-io</artifactId>
14471443
</exclusion>
14481444
<exclusion>
14491445
<groupId>commons-collections</groupId>
@@ -1507,15 +1503,7 @@
15071503
</exclusion>
15081504
<exclusion>
15091505
<groupId>io.netty</groupId>
1510-
<artifactId>netty-all</artifactId>
1511-
</exclusion>
1512-
<exclusion>
1513-
<groupId>io.netty</groupId>
1514-
<artifactId>netty-handler</artifactId>
1515-
</exclusion>
1516-
<exclusion>
1517-
<groupId>io.netty</groupId>
1518-
<artifactId>netty-transport-native-epoll</artifactId>
1506+
<artifactId>*</artifactId>
15191507
</exclusion>
15201508
<exclusion>
15211509
<groupId>org.eclipse.jetty</groupId>
@@ -1596,6 +1584,12 @@
15961584
<groupId>${leveldbjni.group}</groupId>
15971585
<artifactId>leveldbjni-all</artifactId>
15981586
<version>1.8</version>
1587+
<exclusions>
1588+
<exclusion>
1589+
<groupId>com.fasterxml.jackson.core</groupId>
1590+
<artifactId>jackson-core</artifactId>
1591+
</exclusion>
1592+
</exclusions>
15991593
</dependency>
16001594
<dependency>
16011595
<groupId>org.fusesource.hawtjni</groupId>
@@ -1958,11 +1952,23 @@
19581952
<groupId>org.ehcache</groupId>
19591953
<artifactId>ehcache</artifactId>
19601954
<version>${ehcache.version}</version>
1955+
<exclusions>
1956+
<exclusion>
1957+
<groupId>org.slf4j</groupId>
1958+
<artifactId>slf4j-api</artifactId>
1959+
</exclusion>
1960+
</exclusions>
19611961
</dependency>
19621962
<dependency>
19631963
<groupId>com.zaxxer</groupId>
19641964
<artifactId>HikariCP</artifactId>
19651965
<version>${hikari.version}</version>
1966+
<exclusions>
1967+
<exclusion>
1968+
<groupId>org.slf4j</groupId>
1969+
<artifactId>slf4j-api</artifactId>
1970+
</exclusion>
1971+
</exclusions>
19661972
</dependency>
19671973
<dependency>
19681974
<groupId>org.apache.derby</groupId>
@@ -2024,6 +2030,12 @@
20242030
<groupId>org.jsonschema2pojo</groupId>
20252031
<artifactId>jsonschema2pojo-core</artifactId>
20262032
<version>${jsonschema2pojo.version}</version>
2033+
<exclusions>
2034+
<exclusion>
2035+
<groupId>commons-io</groupId>
2036+
<artifactId>commons-io</artifactId>
2037+
</exclusion>
2038+
</exclusions>
20272039
</dependency>
20282040
<dependency>
20292041
<groupId>org.xerial.snappy</groupId>

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-mawo/hadoop-yarn-applications-mawo-core/pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,25 +93,6 @@
9393
<dependency>
9494
<groupId>org.apache.zookeeper</groupId>
9595
<artifactId>zookeeper</artifactId>
96-
<exclusions>
97-
<exclusion>
98-
<!-- otherwise seems to drag in junit 3.8.1 via jline -->
99-
<groupId>junit</groupId>
100-
<artifactId>junit</artifactId>
101-
</exclusion>
102-
<exclusion>
103-
<groupId>com.sun.jdmk</groupId>
104-
<artifactId>jmxtools</artifactId>
105-
</exclusion>
106-
<exclusion>
107-
<groupId>com.sun.jmx</groupId>
108-
<artifactId>jmxri</artifactId>
109-
</exclusion>
110-
<exclusion>
111-
<groupId>org.jboss.netty</groupId>
112-
<artifactId>netty</artifactId>
113-
</exclusion>
114-
</exclusions>
11596
</dependency>
11697

11798
<dependency>

0 commit comments

Comments
 (0)