Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase jars with conflicting versions?

Solved Go to solution

HBase jars with conflicting versions?

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

Accepted Solutions

Re: HBase jars with conflicting versions?

Super 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

5 REPLIES 5

Re: HBase jars with conflicting versions?

Super 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

Highlighted

Re: HBase jars with conflicting versions?

Super 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

Re: HBase jars with conflicting versions?

Mentor

Thanks Ted, what about the rest?

Re: HBase jars with conflicting versions?

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.

Re: HBase jars with conflicting versions?

Mentor

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