带有hbase(都是kerberos)java.net.sockettimeoutexception的配置单元'在table上'hbase:meta'

nwsw7zdq  于 2021-06-07  发布在  Hbase
关注(0)|答案(1)|浏览(421)

错误

尝试使用从配置单元查询hbase时接收超时错误 HBaseStorageHandler .

  1. Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=68199: row 'phoenix_test310,,'
  2. on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=hbase-master.example.com,16020,1583728693297, seqNum=0
  3. at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:159)
  4. at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:64)
  5. ... 3 more

我试着按照我能找到的文件去做 hbase 配置选项添加到 hive-site.xml 基于这个cloudera链接

环境:

hadoop 2.9.2版
hbase 1.5版
Hive2.3.6
Zookeeper3.5.6

um6iljoc

um6iljoc1#

首先,应该忽略cloudera链接,hive通过环境变量检测hbase的存在,然后自动读取 hbase-site.xml 配置设置。
不需要在中复制hbase设置 hive-site.xml ###为hbase配置配置单元
修改您的 hive-env.sh 具体如下:

  1. # replace <hbase-install> with your installation path /etc/hbase for example
  2. export HBASE_BIN="<hbase-install>/bin/hbase"
  3. export HBASE_CONF_DIR="<hbase-install>/conf"

另外,你应该确保 HADOOP_* 在中也设置了环境变量 hive-env.sh ,并将hbase lib目录添加到 HADOOP_CLASSPATH .

相关问题