使用Hiveserver2错误访问Hbase

时间:2016-10-17 03:09:44

标签: hive hbase hue

我使用hue来执行hive sql show tables;一切正常。 但是执行了hive sql select * from tablea limit 1;并获得了异常:

  

java.net.SocketTimeoutException:callTimeout = 60000,callDuration = 68043:   row' log ,, 00000000000000'在桌子上' hbase:meta'在   region = hbase:meta ,, 1.1588230740,hostname = node4,16020,1476410081203,   SEQNUM = 0:5:1&#34 ;,   ' org.apache.hadoop.hbase.client.RpcRetryingCaller:callWithRetries:RpcRetryingCaller.java:159&#39 ;,   ' org.apache.hadoop.hbase.client.ResultBoundedCompletionService $ QueueingFuture:运行:ResultBoundedCompletionService.java:64&#39 ;,   ' * org.apache.hadoop.hbase.exceptions.ConnectionClosingException:呼叫   到node4 / 192.168.127.1:16020本地异常失败:   org.apache.hadoop.hbase.exceptions.ConnectionClosingException:   与node4 / 192.168.127.1:16020的连接正在关闭。呼叫id = 9,   WAITTIME = 1:16:11&#39 ;,   ' org.apache.hadoop.hbase.ipc.RpcClientImpl:wrapException:RpcClientImpl.java:1239&#39 ;,   ' org.apache.hadoop.hbase.ipc.RpcClientImpl:拨打:RpcClientImpl.java:1210&#39 ;,   ' org.apache.hadoop.hbase.ipc.AbstractRpcClient:callBlockingMethod:AbstractRpcClient.java:213&#39 ;,   ' org.apache.hadoop.hbase.ipc.AbstractRpcClient $ BlockingRpcChannelImplementation:callBlockingMethod:AbstractRpcClient.java:287&#39 ;,   ' org.apache.hadoop.hbase.protobuf.generated.ClientProtos $ $ ClientService BlockingStub:扫描:ClientProtos.java:32651&#39 ;,   ' org.apache.hadoop.hbase.client.ScannerCallable:openScanner:ScannerCallable.java:372&#39 ;,   ' org.apache.hadoop.hbase.client.ScannerCallable:拨打:ScannerCallable.java:199&#39 ;,   ' org.apache.hadoop.hbase.client.ScannerCallable:拨打:ScannerCallable.java:62&#39 ;,   ' org.apache.hadoop.hbase.client.RpcRetryingCaller:callWithoutRetries:RpcRetryingCaller.java:200&#39 ;,   ' org.apache.hadoop.hbase.client.ScannerCallableWithReplicas $ RetryingRPC:拨打:ScannerCallableWithReplicas.java:369&#39 ;,   ' org.apache.hadoop.hbase.client.ScannerCallableWithReplicas $ RetryingRPC:拨打:ScannerCallableWithReplicas.java:343&#39 ;,   ' org.apache.hadoop.hbase.client.RpcRetryingCaller:callWithRetries:RpcRetryingCaller.java:126&#39 ;,   ' * org.apache.hadoop.hbase.exceptions.ConnectionClosingException:连接   到node4 / 192.168.127.1:16020正在关闭。呼叫id = 9,waitTime = 1:3:2',   ' org.apache.hadoop.hbase.ipc.RpcClientImpl $连接:cleanupCalls:RpcClientImpl.java:1037&#39 ;,   ' org.apache.hadoop.hbase.ipc.RpcClientImpl $连接:关闭:RpcClientImpl.java:844&#39 ;,   ' org.apache.hadoop.hbase.ipc.RpcClientImpl $连接:运行:RpcClientImpl.java:572&#39],   statusCode = 3),results = None,hasMoreRows = None)

1 个答案:

答案 0 :(得分:0)

在配置文件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作业。