cdh hbase启动master报: failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel

今天在cdh装hbase时,本来以为几分钟就完事了,结果,,,装完后,hmaster启动不起来,看日志报如下错误:

 ERROR org.apache.hadoop.hbase.master.HMaster: Failed to become active master
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=31, exceptions:
Wed May 13 15:20:20 CST 2020, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=68491: Call to node2/192.168.3.199:60020 failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel.AbstractChannel$AnnotatedCo
nnectException: syscall:getsockopt(..) failed: Connection refused: node2/192.168.3.199:60020 row '' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=node2,60020,1544155968783, seqNum=-1

 at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.throwEnrichedException(RpcRetryingCallerWithReadReplicas.java:298)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:242)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:58)
        at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithoutRetries(RpcRetryingCallerImpl.java:192)
        at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:269)
        at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:437)
        at org.apache.hadoop.hbase.client.ClientScanner.nextWithSyncCache(ClientScanner.java:312)
        at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:597)
        at org.apache.hadoop.hbase.MetaTableAccessor.scanMeta(MetaTableAccessor.java:754)
        at org.apache.hadoop.hbase.MetaTableAccessor.scanMeta(MetaTableAccessor.java:677)
        at org.apache.hadoop.hbase.MetaTableAccessor.fullScanTables(MetaTableAccessor.java:226)
        at org.apache.hadoop.hbase.master.TableStateManager.fixTableStates(TableStateManager.java:277)
        at org.apache.hadoop.hbase.master.TableStateManager.start(TableStateManager.java:269)
        at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:910)
        at org.apache.hadoop.hbase.master.HMaster.startActiveMasterManager(HMaster.java:2086)
        at org.apache.hadoop.hbase.master.HMaster.lambda$run$0(HMaster.java:553)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=68491: Call to node2/192.168.3.199:60020 failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel.AbstractChannel$AnnotatedConnectException: syscall:g
etsockopt(..) failed: Connection refused: node2/192.168.3.199:60020 row '' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=node2,60020,1544155968783, seqNum=-1
        at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithRetries(RpcRetryingCallerImpl.java:159)
        at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:80)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        ... 1 more
Caused by: java.net.ConnectException: Call to node2/192.168.3.199:60020 failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel.AbstractChannel$AnnotatedConnectException: syscall:getsockopt(..) failed: Connection refused: nod
e2/192.168.3.199:60020
        at org.apache.hadoop.hbase.ipc.IPCUtil.wrapException(IPCUtil.java:166)
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient.onCallFinished(AbstractRpcClient.java:390)
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient.access$100(AbstractRpcClient.java:95)
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient$3.run(AbstractRpcClient.java:410)
        at org.apache.hadoop.hbase.ipc.AbstractRpcClient$3.run(AbstractRpcClient.java:406)
        at org.apache.hadoop.hbase.ipc.Call.callComplete(Call.java:103)
这让我郁闷啊,因为我的node2节点时没有安装hbase服务的,他竟然告我要连接60020端口,于是我第一反应是检查regionservers,但是cdh的regionservers都是默认的local,没有写入东西,于是百度,google找其位置,结果没找到。好吧,有点无奈,于是看hbase.site-xml找zookeeper的信息,并进入zookeeper-clinet客户端下:

cdh hbase启动master报: failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel_第1张图片查看此文件都是node2de信息,于是认定这是集群以前装过hbase并没有卸载干净导致的,嗯,接下来使用rmr 删除/hbase/meta-region-server,重启hbase,问题得到完美解决

你可能感兴趣的:(HBase)