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.
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.