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?
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 "