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,追加
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)