赞
踩
在HBase搭建成功的基础下
[root@master1 conf]# vi backup-masters
在Hadoop下的hdfs-site.xml文件中添加
<property>
<name>dfs.ha.automtic-failover.enabled.ns</name>
<value>true</value>
</property>
然后将其拷贝至hbase下的conf文件中
输入命令干掉master1的hbase
[root@master1 conf]# hbase-daemon.sh stop master
测试成功
遇到以下报错
master.HMaster: hbase:meta,1.1588230740 is NOT online
Master failed to complete initialization
Master startup cannot progress, in holding-pattern until region onlined.
且在log文件中查看以下警告
处理方法:
进入zookeeper中
将hbase的信息删除
deleteall /hbase
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。