Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HBase jars with conflicting versions?

avatar
Master Mentor

Can someone explain the decision to include the following jars in the HDP distribution for HBase? Is this for compatibility? Please provide some technical background on the decision.

-rw-r--r-- 1 user user   790250 Nov 15 19:41 netty-3.2.4.Final.jar
-rw-r--r-- 1 user user  1779991 Nov 15 18:11 netty-all-4.0.23.Final.jar
-rw-r--r-- 1 user user   132368 Nov 15 18:12 servlet-api-2.5-6.1.14.jar
-rw-r--r-- 1 user user   105112 Nov 15 18:05 servlet-api-2.5.jar
1 ACCEPTED SOLUTION

avatar
Master Collaborator

netty-3.2.4.Final.jar is brought in by hbase-it module.

It shouldn't collide with netty-all-4.0.23.Final.jar

View solution in original post

5 REPLIES 5

avatar
Master Collaborator

netty-3.2.4.Final.jar is brought in by hbase-it module.

It shouldn't collide with netty-all-4.0.23.Final.jar

avatar
Master Collaborator

servlet-api-2.5.jar is brought in by transitive dependency:

[INFO] +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.7.3.2.6.0.0-SNAPSHOT:compile

[INFO] | +- org.apache.hadoop:hadoop-yarn-common:jar:2.7.3.2.6.0.0-SNAPSHOT:compile

[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.2.2:compile

[INFO] | | | \- javax.activation:activation:jar:1.1:compile

[INFO] | | +- javax.servlet:servlet-api:jar:2.5:compile

avatar
Master Mentor

Thanks Ted, what about the rest?

avatar
Super Collaborator

I would also add to Ted's comment that netty-3.2.4 (which is required by hadoop-hdfs) and netty-all-4.0.23 are not conflicting because 3.2.4 is the old version with org.jboss.netty package while 4.0.23 has io.netty package. Actually they even have different artifact IDs (netty vs netty-all). So it's safe to use both of them in the same project.

avatar
Master Mentor

Thank you Sergey, I wish I could accept both answers. Voting up!