zookeeper and installation and configuration hbase

zookeeper and installation and configuration hbase

1. Download the zookeeper

I use the zookeeperversion 3.4.14, whatever the official website to download or mirror can be of Tsinghua University

2. Install the zookeeper

zookeeperThe 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 zookeeperin the installation directory conf/zoo_sample.cfgfiles, 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 zookeeperthe 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 hadoopis 2.7.7 version, so usehbase-1.4.9

7. Install hbase

Download good hbasethe software, choose to install to /usr/localdecompress 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 ~ _ ~

Guess you like

Origin www.cnblogs.com/hwang126/p/11032463.html