随机时间延迟后,HBase连接被拒绝

时间:2019-04-01 07:08:28

标签: java hadoop hbase yarn apache-zookeeper

我已成功安装Hadoop single node Hbase。我正在使用Java代理连接到Hbase。在一段随机的时间后,Hbase停止工作,并且Java代理给出以下错误消息。

  

呼叫异常,尝试= 7,重试= 7,开始= 8321 ms之前,已取消= false,msg =对db-2.c.xxx-dev.internal / xx.xx.0.21:16201的调用失败异常:org.apache.hbase.thirdparty.io.netty.channel.AbstractChannel $ AnnotatedConnectException:连接被拒绝:db-2.c.xxx-dev.internal / xx.xx.0.21:16201,details = row'xxx,00000000001 :表'hbase:meta'上的1553904000000,99999999999999',位于region = hbase:meta,1.1588230740,hostname = db-2.c.xxx-dev.internal,16201,15536​​83263844,seqNum = -1

以下是Hbase和Zookeeper日志

hbase-hduser-regionserver-db-2.log

  

[main] zookeeper.ZooKeeperMain:处理删除   2019-03-30 02:11:44,089调试[main-SendThread(localhost:2181)] zookeeper.ClientCnxn:读取回复sessionid:0x169bd98c099006e,数据包:: clientPath:null serverPath:null完成:false标头:: 1,2 ReplyHeader :: 1,300964,0请求::'/hbase/rs/db-2.c.stl-cardio-dev.internal%2C16201%2C15536​​83263844,-1响应:: null

hbase-hduser-zookeeper-db-2.log

  

server.FinalRequestProcessor:sessionid:0x169bd98c099004a type:getChildren cxid:0x28e3ad zxid:0xfffffffffffffff txntype:未知的reqpath:/ hbase / splitWAL

我的hbase-site.xml文件如下

<configuration>
        //Here you have to set the path where you want HBase to store its files.
        <property>
           <name>hbase.rootdir</name>
           <value>hdfs://localhost:9000/hbase</value>
        </property>
        <property>
           <name>hbase.zookeeper.quorum</name>
           <value>localhost</value>
        </property>
       //Here you have to set the path where you want HBase to store its built in zookeeper  files.
        <property>
           <name>hbase.zookeeper.property.dataDir</name>
           <value>${hbase.tmp.dir}/zookeeper</value>
        </property>
        <property>
            <name>hbase.cluster.distributed</name>
            <value>true</value>
        </property>
        <property>
           <name>hbase.zookeeper.property.clientPort</name>
           <value>2181</value>
        </property>
</configuration>

当我重新启动Hbase时,它将重新开始工作,并在几天后停止工作。我想知道对此有什么解决办法。

谢谢。

0 个答案:

没有答案