Hbase高可用集群搭建

hadoop和spark高可用集群搭建参考链接:
http://www.jianshu.com/writer#/notebooks/6146839/notes/6304146

方案

192.168.211.129   elastic :        HMaster(主)
192.168.211.130   hbase :        Hmaster(备) RegionServer
192.168.211.131   mongodb :        RegionServer

配置Hbase

cd /home/spark/nosql/hbase-1.2.4/conf
vi hbase-env.sh
    export JAVA_HOME=/usr/java/default/
    export HBASE_MANAGES_ZK=false
vi hbase-site.xml


    hbase.zookeeper.quorum
    elastic:2181,hbase:2181,mongodb:2181
    zookeeper server


    hbase.zookeeper.property.clientPort
    2181


    hbase.zookeeper.property.dataDir
    /home/spark/nosql/zookeeper-3.4.6/data
    Property from Zookeeper zoo.cfg


    hbase.rootdir
    hdfs://mycluster/hbase
    The directory shared by RegionServers.


    hbase.cluster.distributed
    true
    The mode the cluster will be in.


vi regionservers
    hbase
    mongodb

启动

在主节点elastic:
    start-hbase.sh
在备节点hbase:
     hbase-daemon.sh start master

效果

elastic:
    14692 NameNode
    11385 JobHistoryServer
    16030 Jps
    14270 HMaster
    11521 ApplicationHistoryServer
    10281 JournalNode
    10098 QuorumPeerMain
    10216 DFSZKFailoverController
    14800 DataNode
    15094 ResourceManager
hbase:
    5813 NodeManager
    5250 NameNode
    5606 ResourceManager
    5486 DataNode
    9620 HRegionServer
    5071 DFSZKFailoverController
    10212 Jps
    4984 QuorumPeerMain
    6153 Worker
    5136 JournalNode
    9884 HMaster
    5987 Master
mongodb:
    3748 JournalNode
    5241 Jps
    4639 HRegionServer
    3701 QuorumPeerMain
    3836 DataNode
    3958 NodeManager

你可能感兴趣的:(Hbase高可用集群搭建)