Reply
zbz
Explorer
Posts: 16
Registered: ‎10-07-2018

beeline hive on hbase error

Hi,

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.

why?

 

 

 

 

zbz
Explorer
Posts: 16
Registered: ‎10-07-2018

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.