开发者社区> 问答> 正文

eclipse连接hbase连接超时。RetriesExhaustedException

请问我在mac的本地连接虚拟机的hbase,出现连接超时。请问是什么问题?
HBase1.3.2(第一台虚拟机)
zookeeper3.4.12(第一台虚拟机)
Hadoop2.5.0(第二台虚拟机)
错误日志信息:
18/09/25 06:40:25 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=hbase01.com:2181 sessionTimeout=90000 watcher=org.apache.hadoop.hbase.zookeeper.PendingWatcher@3e77a1ed
18/09/25 06:40:25 INFO zookeeper.ClientCnxn: Opening socket connection to server 192.168.1.9/192.168.1.9:2181. Will not attempt to authenticate using SASL (unknown error)
18/09/25 06:40:25 INFO zookeeper.ClientCnxn: Socket connection established to 192.168.1.9/192.168.1.9:2181, initiating session
18/09/25 06:40:25 INFO zookeeper.ClientCnxn: Session establishment complete on server 192.168.1.9/192.168.1.9:2181, sessionid = 0x100070689670000, negotiated timeout = 40000
18/09/25 06:41:04 INFO client.RpcRetryingCaller: Call exception, tries=10, retries=35, started=38617 ms ago, cancelled=false, msg=Connection refused row 'test1,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=localhost,16020,1530482469684, seqNum=0
18/09/25 06:41:14 INFO client.RpcRetryingCaller: Call exception, tries=11, retries=35, started=48704 ms ago, cancelled=false, msg=Connection refused row 'test1,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=localhost,16020,1530482469684, seqNum=0
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Tue Sep 25 06:41:14 CST 2018, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=68737: Connection refused row 'test1,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=localhost,16020,1530482469684, seqNum=0
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.throwEnrichedException(RpcRetryingCallerWithReadReplicas.java:276)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:210)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:212)
at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:314)
at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:289)
at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:164)
at org.apache.hadoop.hbase.client.ClientScanner.(ClientScanner.java:159)
at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:796)
at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602)
at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366)
at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:408)
at com.baohp.ImageServer.TestHbaseApi.testCreateTable(TestHbaseApi.java:44)
at com.baohp.ImageServer.TestHbaseApi.main(TestHbaseApi.java:20)
Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=68737: Connection refused row 'test1,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=localhost,16020,1530482469684, seqNum=0
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:171)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:65)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupConnection(RpcClientImpl.java:418)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:724)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:911)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:875)
at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1249)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:227)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:336)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:35518)
at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:404)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:211)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:65)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:212)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:364)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:338)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:137)
... 4 more

展开
收起
hbase小能手 2018-11-08 11:32:45 5691 0
1 条回答
写回答
取消 提交回答
  • HBase是一个分布式的、面向列的开源数据库,一个结构化数据的分布式存储系统。HBase不同于一般的关系数据库,它是一个适合于非结构化数据存储的数据库。阿里云HBase技术团队共同探讨HBase及其生态的问题。

    Tue Sep 25 06:41:14 CST 2018, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=68737: Connection refused row 'test1,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=localhost,16020,1530482469684, seqNum=0

    mac本机连接的主机名是localhost,这块应该是hbase的主机名才对

    2019-07-17 23:12:56
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
大数据时代的存储 ——HBase的实践与探索 立即下载
Hbase在滴滴出行的应用场景和最佳实践 立即下载
阿里云HBase主备双活 立即下载

相关实验场景

更多

相关镜像