一、節(jié)點規(guī)劃
按需規(guī)劃網(wǎng)站可以根據(jù)自己的需求進行定制,成都做網(wǎng)站、網(wǎng)站設(shè)計、外貿(mào)營銷網(wǎng)站建設(shè)構(gòu)思過程中功能建設(shè)理應(yīng)排到主要部位公司成都做網(wǎng)站、網(wǎng)站設(shè)計、外貿(mào)營銷網(wǎng)站建設(shè)的運用實際效果公司網(wǎng)站制作網(wǎng)站建立與制做的實際意義
hadoop1、hadoop2 | HMaster |
hadoop3、hadoop4、hadoop5 | HRegionServer |
二、配置環(huán)境變量
export HBASE_HOME=/usr/local/hbase export PATH=:$HBASE_HOME/bin:$PATH
三、解壓hbase
四、修改配置參數(shù)
1.hbase-env.sh
[root@hadoop1 ~]# cat /usr/local/hbase/conf/hbase-env.sh | grep -v [#] | grep -v '^$' export JAVA_HOME=/usr/local/jdk export HBASE_CLASSPATH=/usr/local/hbase/conf export HADOOP_HOME=/usr/local/hadoop export HBASE_OPTS="-XX:+UseConcMarkSweepGC" export HBASE_MANAGES_ZK=false
2.hbase-site.xml
hbase.rootdir hdfs://master:/hbase hbase.master 60000 hbase.cluster.distributed true hbase.zookeeper.property.dataDir /usr/local/zookeeper hbase.tmp.dir /usr/local/hbase/tmp hbase.zookeeper.quorum hadoop3,hadoop4,hadoop5 hbase.zookeeper.property.clientPort 2181
3.regionservers
[root@hadoop1 ~]# cat /usr/local/hbase/conf/regionservers hadoop3 hadoop4 hadoop5
五、拷貝到其他節(jié)點
scp -r /usr/local/hbase root@hadoop2:/usr/local/
六、啟動hbase(需要先啟動hdfs)
start-hbase.sh
[root@hadoop1 ~]# jps 3040 DFSZKFailoverController 4281 HMaster 5034 Jps 2303 NameNode
在hadoop2上啟動HMaster實現(xiàn)HA
[root@hadoop2 ~]# hbase-daemon.sh start master starting master, logging to /usr/local/hbase/logs/hbase-root-master-hadoop2.out [root@hadoop2 ~]# jps 2450 NameNode 2714 DFSZKFailoverController 3085 HMaster 3150 Jps