eclipse连接hbase连接超时。RetriesExhaustedException-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

eclipse连接hbase连接超时。RetriesExhaustedException

hbase小能手 2018-11-08 11:32:45 2080

请问我在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

分布式数据库 Android开发 Hbase
分享到
取消 提交回答
全部回答(1)
  • hbase小能手
    2019-07-17 23:12:56

    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的主机名才对

    0 0
数据库
使用钉钉扫一扫加入圈子
+ 订阅

分享数据库前沿,解构实战干货,推动数据库技术变革

推荐文章
相似问题
推荐课程