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

beeline hive on hbase error

beeline hive on hbase error



cdh 5.7.6

when I use hive client,It's normal to write data to HBase through hive.

But when using beeline client to write data to hbase, an error occurred:

Error: Could not initialize class org.apache.hadoop.hbase.client.HConnectionKey.

The task sometimes succeed and sometimes fail.







Re: beeline hive on hbase error


I checked the failed job log and found that there was one such item,

java.lang.NoSuchField Error: HBASE_CLIENT_PREFETCH. 

Then I look at the classpath of the failed job, find different versions of the jar package of HBase in hive. aux. jars. path, delete the jar package here, restart hiveserver2, and everything returns to normal.

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