zookeeper and installation and configuration hbase
1. Download the zookeeper
I use the zookeeper
version 3.4.14, whatever the official website to download or mirror can be of Tsinghua University
- Tsinghua Mirror Address: https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.14/
- Official website address: https://zookeeper.apache.org/releases.html#download , or to choose a mirror address, cut ~
2. Install the zookeeper
zookeeper
The standalone installation is relatively simple, almost unzip it on the line
#我将zookeeper等软件安装在/usr/local目录中,自定义
tar -zxvf zookeeper-3.4.14.tar.gz -C /usr/local
3. Configure zookeeper
Copy it zookeeper
in the installation directory conf/zoo_sample.cfg
files, usually namedzoo.cfg
cp conf/zoo_sample.cfg conf/zoo.cfg
DataDir at this stage only need to modify the configuration item on the list, the significance of this option is that the snapshot storage location zookeeper
4. Start zookeeper
Zookeeper into the installation directory, start zookeeper
bin/zkServer.sh start
The following screen appears to indicate zookeeper
the successful launch of the
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
5. zookeeper client connections and to create a node
#没有修改端口,默认是2181
bin/zkCli.sh -server 127.0.0.1:2181
Individuals will be added to the environment variable mounting position of the zookeeper
6. Download hbase
Because I hadoop
is 2.7.7 version, so usehbase-1.4.9
- Mirror Address: http://mirrors.tuna.tsinghua.edu.cn/apache/hbase/hbase-1.2.12/hbase-1.2.12-bin.tar.gz
7. Install hbase
Download good hbase
the software, choose to install to /usr/local
decompress on the line
tar -zxvf hbase-1.4.9.tar.gz -C /usr/local
8. Configuration
Since version 1.4.9 hbase have built zookeeper, they do not apply the built-zk, modifying the configuration, installation directory to hbase
vim conf/hbase-env.sh
#export HBASE_MANAGES_ZK=true
export HBASE_MANAGES_ZK=false
- If you use the built-in easy zookeeper successful operation hbase, but in order to understand the configuration, multi-Nongnong it ~ _ ~