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.

error on hbase table instance creation after upgrading java client to 2.2.2

error on hbase table instance creation after upgrading java client to 2.2.2

New Contributor

An application that accesses hbase is producing an error on attempting to create an instance of an hbase table. This used to work fine but the hbase server was upgraded and subsequently I was forced to update the java client.

 

 

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/lang3/NotImplementedException
at 
org.apache.hadoop.hbase.client.ConnectionImplementation$2.build(ConnectionImplementation.java:375)
at org.apache.hadoop.hbase.client.Connection.getTable(Connection.java:106)
at 
org.apache.hadoop.hbase.client.ConnectionImplementation.getTable(ConnectionImplementation.java:366)

 

The above error occurs on the following line:

 

 

hTable_Test = conn.getTable(TableName.valueOf("test:test_messages"));

 

I don't understand what the issue is. Can someone please help verify what this error means?

1 REPLY 1
Highlighted

Re: error on hbase table instance creation after upgrading java client to 2.2.2

Super Mentor

@c786engineer 

Not sure about which distribution of HBase are you using it will be good to know which version of product you are using like HDP 2.6 / HDP 3.x ...etc

 

In general the mentioned "java.lang.NoClassDefFoundError: org/apache/commons/lang3/NotImplementedException" indicates that your application code is looking out for a JAR with some name like "commons-lang3-3.5.jar" (version may be slightly different based on your product version).

 

So please check if you have added that JAR to your project claspath or inside the POM dependency section... etc? 

 

Just for example in HDP 2.6 you may find that kind of jar inside "

/usr/hdp/current/hbase-client/lib/commons-lang3-3.5.jar"

 

In HDP3

/usr/hdp/current/hbase-client/lib/commons-lang3-3.6.jar

 

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here