我已经安装了cloudera和hdfs,mapreduce,zookeper,hbase。有这些服务的4个节点(3个zookeeper)。所有都是由cloudera向导安装的,在cloudera中没有配置问题。
从java连接我有一个错误:
9:32:23.020 [main-SendThread()] INFO org.apache.zookeeper.ClientCnxn - 打开套接字连接到服务器/172.20.7.6:2181 09:32:23.020 [主要] INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - 进程标识符=连接到ZooKeeper的hconnection-0x301abf87 ensemble = 172.20.7.6:2181 09:32:23.028 [main-SendThread(cloudera2.pjk-tvs ...:2181)]信息 org.apache.zookeeper.ClientCnxn - 建立套接字连接 cloudera2.pjk-tvs ... / 172.20.7.6:2181,发起 会议09:32:23.029 [main-SendThread(cloudera2.pjk-tvs ... net:2181)] DEBUG org.apache.zookeeper.ClientCnxn - 发送会话建立请求 在cloudera2.pjk-tvs ... / 172.20.7.6:2181 09:32:23.035 [main-SendThread(cloudera2.pjk-tvs ...:2181)]信息 org.apache.zookeeper.ClientCnxn - 完成会话建立 服务器cloudera2.pjk-tvs ... / 172.20.7.6:2181, sessionid = 0x2423aeb0f790ff2,negotiated timeout = 60000 09:32:23.037 [main-EventThread] DEBUG org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher - hconnection-0x301abf87收到ZooKeeper事件,type = None, state = SyncConnected,path = null 09:32:23.040 [main-EventThread] DEBUG org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher - hconnection-0x301abf87-0x2423aeb0f790ff2已连接09:32:23.041 [main-SendThread(cloudera2.pjk-tvs ...:2181)] DEBUG org.apache.zookeeper.ClientCnxn - 阅读回复 sessionid:0x2423aeb0f790ff2,packet :: clientPath:null serverPath:null 完成:false header :: 1,3 replyHeader :: 1,8589982838,0 request :: '/ hbase / hbaseid,F响应:: Š{} 16,8589934615,1383919470521,1383967999584,4,0,0,0,85,0,16 09:32:23.044 [main-SendThread(cloudera2 ....:2181)] DEBUG org.apache.zookeeper.ClientCnxn - 阅读回复 sessionid:0x2423aeb0f790ff2,packet :: clientPath:null serverPath:null 完成:false header :: 2,4 replyHeader :: 2,8589982838,0 request :: '/ hbase / hbaseid,F响应:: ffffffff0002c3131363140636c6f7564657261312e706a6b2d7476732e633467642e6772696464796e616d6963732e6e657465633932386436332d316334652d346336652d616238392d646237343239646231336638,S {16,8589934615,1383919470521,1383967999584,4,0,0,0,85,0,16} 09:32:23.100 [main] DEBUG org.apache.hadoop.ipc.RpcClient - Codec=org.apache.hadoop.hbase.codec.KeyValueCodec@11fb24d3, compressor = null,tcpKeepAlive = true,tcpNoDelay = true, maxIdleTime = 10000,maxRetries = 0,fallbackAllowed = false,ping interval = 60000ms,bind address = null 09:32:23.109 [main-SendThread(cloudera2.pjk-tvs ...:2181)] DEBUG org.apache.zookeeper.ClientCnxn - 阅读回复 sessionid:0x2423aeb0f790ff2,packet :: clientPath:null serverPath:null 完成:false header :: 3,4 replyHeader :: 3,8589982838,-101 request ::'/ hbase / meta-region-server,F response :: 09:32:23.116 [main] DEBUG org.apache.hadoop.hbase.zookeeper.ZKUtil - hconnection-0x301abf87-0x2423aeb0f790ff2无法获取znode的数据 / hbase / meta-region-server因为节点不存在(不是错误) 09:32:23.317 [main-SendThread(cloudera2.pjk-tvs ...:2181)] DEBUG org.apache.zookeeper.ClientCnxn - 阅读回复 sessionid:0x2423aeb0f790ff2,packet :: clientPath:null serverPath:null 完成:false header :: 4,4 replyHeader :: 4,8589982838,-101 request ::'/ hbase / meta-region-server,F response :: 09:32:23.318 [main] DEBUG org.apache.hadoop.hbase.zookeeper.ZKUtil - hconnection-0x301abf87-0x2423aeb0f790ff2无法获取znode的数据 / hbase / meta-region-server因为节点不存在(不是错误)
有什么想法吗?
答案 0 :(得分:5)
我曾尝试通过客户端0.96连接到HBase 0.94。 并根据https://blog.cloudera.com/blog/2013/10/what-are-hbase-znodes/ znode / hbase / root-region-server被/ hbase / meta-region-server替换为0.96,java客户端无法找到。