简体   繁体   English

将 java 客户端升级到 2.2.2 后创建 hbase 表实例时出错

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

An application that accesses hbase is producing an error on attempting to create an instance of an hbase table.访问 hbase 的应用程序在尝试创建 hbase 表的实例时产生错误。 This used to work fine but the hbase server was upgraded and subsequently I was forced to update the java client.这曾经工作正常,但 hbase 服务器已升级,随后我被迫更新 java 客户端。

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?有人可以帮助验证此错误的含义吗?

NoClassDefFoundError means that at runtime you don't have java class which was available at compile time. NoClassDefFoundError意味着在运行时您没有在编译时可用的 java 类。
org/apache/commons/lang3/NotImplementedException comes with group: 'org.apache.commons', name: 'commons-lang3', version: 'some version' org/apache/commons/lang3/NotImplementedException带有group: 'org.apache.commons', name: 'commons-lang3', version: 'some version'
Can you check if you have this jar file in your execution environment?你能检查一下你的执行环境中是否有这个jar文件吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM