Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure hbase under ZooKeeper Cluster

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to configure hbase under the ZooKeeper cluster, which is very detailed and has a certain reference value. Interested friends must read it!

Start up the zookeeper

We have three ZK,slave1.hadoop,slave2.hadoop,slave3.hadoop here.

For example, configuration file zoo.cfg

ClientPort=2181

Server.1=slave1.hadoop:2888:3888

Server.2=slave2.hadoop:2888:3888

Server.3=slave3.hadoop:2888:3888

Related configuration of Hbase

Modify hbase-env.sh

Export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64

Export HBASE_IDENT_STRING=$HOSTNAME

Export HBASE_CLASSPATH=/home/hadoop/hbase-0.96/lib

Export HBASE_MANAGES_ZK=false

Modify hbase-site.xml

Hbase.master

Slave1.hadoop:60000

Hbase.rootdir

Hdfs://slave1.hadoop:8020/hbase

Hbase.cluster.distributed

True

Hbase.zookeeper.property.clientPort

2181

Hbase.zookeeper.quorum

Slave1.hadoop,slave2.hadoop,slave3.hadoop

Hbase.regionserver.handler.count

one hundred

Hbase.client.write.buffer

5242880

These are all the contents of the article "how to configure hbase under ZooKeeper Cluster". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report