访问带有hiveserver2的hbase时出错

eulz3vhy  于 2021-06-10  发布在  Hbase
关注(0)|答案(1)|浏览(526)

我使用hue执行hivesql show tables; 一切都好。但是执行了配置单元sql select * from tablea limit 1; 但有个例外:
java.net.sockettimeoutexception:calltimeout=60000,callduration=68043:行'log',00000000000000'on table'hbase:meta'在区域=hbase:meta,,1.1588230740,主机名=node4160201476410081203,seqnum=0:5:1“,org.apache.hadoop.hbase.client.rpcretryingcaller:callwithretries:rpcretryingcaller。java:159','org.apache.hadoop.hbase.client.resultboundedcompletionservice$队列ingfuture:run:resultboundedcompletionservice。java:64','*org.apache.hadoop.hbase.exceptions.connectionclosingexception:call to node4/192.168.127.1:16020在本地异常上失败:org.apache.hadoop.hbase.exceptions.connectionclosingexception:到node4/192.168.127.1:16020的连接正在关闭。call id=9,waittime=1:16:11','org.apache.hadoop.hbase.ipc.rpcclientimpl:wrapexception:rpcclientimpl。java:1239','org.apache.hadoop.hbase.ipc.rpcclientimpl:call:rpcclientimpl。java:1210','org.apache.hadoop.hbase.ipc.abstractrpcclient:callblockingmethod:abstractrpcclient。java:213','org.apache.hadoop.hbase.ipc.abstractrpcclient$blockingRpcChannel简单mentation:callblockingmethod:abstractrpcclient。java:287','org.apache.hadoop.hbase.protobuf.generated.clientprotos$clientservice$blockingstub:scan:客户端协议。java:32651','org.apache.hadoop.hbase.client.scannercallable:openscanner:可扫描。java:372','org.apache.hadoop.hbase.client.scannercallable:call:可扫描。java:199','org.apache.hadoop.hbase.client.scannercallable:call:可扫描。java:62','org.apache.hadoop.hbase.client.rpcretryingcaller:callwithoutretries:rpcretryingcaller。java:200','org.apache.hadoop.hbase.client.scannercallablewithreplicas$retryingrpc:call:scannercallablewithreplicas。java:369','org.apache.hadoop.hbase.client.scannercallablewithreplicas$retryingrpc:call:scannercallablewithreplicas。java:343','org.apache.hadoop.hbase.client.rpcretryingcaller:callwithretries:rpcretryingcaller。java:126','*org.apache.hadoop.hbase.exceptions.connectionclosingexception:connection to 节点4/192.168.127.1:16020关闭。call id=9,waittime=1:3:2','org.apache.hadoop.hbase.ipc.rpcclientimpl$connection:cleanupcalls:rpcclientimpl。java:1037','org.apache.hadoop.hbase.ipc.rpcclientimpl$connection:close:rpcclientimpl。java:844','org.apache.hadoop.hbase.ipc.rpcclientimpl$connection:run:rpcclientimpl。java:572'],statuscode=3),results=none,hasmorerows=none)

1qczuiv0

1qczuiv01#

在配置文件hive-site.xml中

<property>  
    <name>hive.server2.enable.doAs</name>  
    <value>false</value>  
</property>
set the value to false.

true表示与登录hiveserver2的用户一起执行hadoop作业。
false表示与启动hiveserver2的用户一起执行hadoop作业。

相关问题