关于hadoop要注意的地方

最近装hadoop集群,出现各种问题,现在做个总结:

 

1、hadoop集群要奇数台。hbase.zookeeper.quorum 里面要写奇数个。

 

2、报错: ERROR [main]client.ConnectionManager$HConnectionImplementation: The node /hbase is not inZooKeeper. It should have been written by the master. Check the valueconfigured in 'zookeeper.znode.parent'. There could be a mismatch with the oneconfigured in the master.

的解决

参考:这里

具体做法如下:

(1) 修复HBASE的元数据

 

到HBASE的根目录下,运行如下命令

./bin/hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair

(2) 删除zookeeper中的数据

进入zookeeper根目录下,运行 ./zkcli.sh 程序,运行rmr /hbase。

(3) 重启zookeeper与HBase,果然成功搞定。

你可能感兴趣的:(hadoop)