In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install the HBase cluster. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
HBase is based on Hadoop, and it is assumed that you have installed the Hadoop platform.
1. Download resources
Official website: http://mirrors.cnnic.cn/apache/hbase/stable/
two。 Upload, decompress, soft connection
Note: for the process, please refer to "VMware Virtual Machine Building Hadoop2.7.1 distributed Cluster (3)"
3. Modify configuration
(1) Environmental variables
Vim / etc/profile
Export HBASE_HOME=/opt/hbase
Export PATH=$HBASE_HOME/bin:$PATH
(2) hbase-env.sh
Export HBASE_LOG_DIR=/logs/hbase
ExportHBASE_MANAGES_ZK=ture
(3) hbase-site.xml
Hbase.cluster.distributed
True
Hbase.regionserver.hlog.replication
two
Hbase.tmp.dir
/ opt/data/hbase/tmp
Hbase.rootdir
Hdfs://hadoop01:9000/hbase
Hbase.zookeeper.quorum
192.168.159.130:2181192.168.159.131:2181192.168.159.132:2181
Hbase.zookeeper.property.maxClientCnxns
5000
Hbase.client.write.buffer
4194304
Hbase.regionserver.handler.count
two hundred
Hbase.regionserver.global.memstore.size
0.3
Hbase.hregion.memstore.flush.size
134217728
Hbase.hregion.max.filesize
4294967296
Hbase.client.scanner.timeout.period
300000
Zookeeper.session.timeout
300000
Hbase.zookeeper.property.tickTime
6000
Hbase.regionserver.restart.on.zk.expire
True
Hbase.master.distributed.log.splitting
True
Hbase.regionserver.executor.openregion.threads
twenty
Hbase.regionserver.executor.closeregion.threads
twenty
Dfs.client.read.shortcircuit
True
Dfs.domain.socket.path
/ var/lib/hadoop-hdfs/dn_socket
Hbase.hstore.compactionThreshold
five
Hbase.regionserver.maxlogs
one hundred and twenty
Hbase.hregion.majorcompaction
0
Hfile.block.cache.size
0.5
Hbase.snapshot.enabled
True
(4) regionservers
Hadoop01
Hadoop02
Hadoop03
4. Copy
Copy the above to another node.
5. Start the cluster
(1) start HDFS
Sh start-dfs.sh
(2) start HBase
Sh bin/start-hbase.sh
Tip: it is necessary to keep the time synchronization of the cluster, otherwise RegionServer may not be able to start and report an error.
Time synchronization reference: http://www.hello-code.com/group/Hadoop/201407/1291.html
You can write a crontab script to synchronize the time.
6. View startup results
(1) JPS view process
(2) simple operation of hbase shell
(3) UI
Http://192.168.159.130:16010/master-status
This is the end of the article on "how to install HBase clusters". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.