In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
I. Node planning
Hadoop1 、 hadoop2HMasterhadoop3 、 hadoop4 、 hadoop5HRegionServer
Second, configure environment variables
Export HBASE_HOME=/usr/local/hbaseexport PATH=:$HBASE_HOME/bin:$PATH
3. Decompress hbase
IV. Modify configuration parameters
1.hbase-env.sh
[root@hadoop1 ~] # cat / usr/local/hbase/conf/hbase-env.sh | grep-v [#] | grep-v'^ $'export JAVA_HOME=/usr/local/jdkexport HBASE_CLASSPATH=/usr/local/hbase/confexport HADOOP_HOME=/usr/local/hadoopexport 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 hadoop3hadoop4hadoop5
Copy to other nodes
Scp-r / usr/local/hbase root@hadoop2:/usr/local/
6. Start hbase (you need to start hdfs first)
Start-hbase.sh [root@hadoop1 ~] # jps3040 DFSZKFailoverController4281 HMaster5034 Jps2303 NameNode
Start HMaster on hadoop2 to realize HA
[root@hadoop2 ~] # hbase-daemon.sh start masterstarting master, logging to / usr/local/hbase/logs/hbase-root-master-hadoop2.out [root@hadoop2 ~] # jps2450 NameNode2714 DFSZKFailoverController3085 HMaster3150 Jps
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.