org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for ,第1张

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /

idea连hbase报错

Exception in thread "main" java.net.SocketTimeoutException: callTimeout=1200000, callDuration=1229322: java.io.IOException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master 
    at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithRetries(RpcRetryingCallerImpl.java:159)
    at org.apache.hadoop.hbase.client.HbaseAdmin.executeCallable(HbaseAdmin.java:3089)
    at org.apache.hadoop.hbase.client.HbaseAdmin.executeCallable(HbaseAdmin.java:3081)
    at org.apache.hadoop.hbase.client.HbaseAdmin.getNamespaceDescriptor(HbaseAdmin.java:2253)
    at HelloHbase.main(HelloHbase.java:25)
Caused by: org.apache.hadoop.hbase.MasterNotRunningException: java.io.IOException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
 

解决办法:idea 目录里resource里的hbase-site.xml也需要设置zookeeper,追加

       
         
                hbase.zookeeper.quorum
                master,slave01,slave02,slave03
       

       
           
                hbase.zookeeper.property.dataDir
                /opt/zookeeper/zkData
       

 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5117983.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-17
下一篇 2022-11-17

发表评论

登录后才能评论

评论列表(0条)

保存