hbase install

1. Upload the hbase installation package

 

2. Unzip

 

3. To configure the hbase cluster, you need to modify 3 files (first, the zk cluster has been installed)

Note: Put hadoop's hdfs-site.xml and core-site.xml under hbase/conf

 

3.1 Modify hbase-env.sh

export JAVA_HOME=/usr/java/jdk1.7.0_55

//Tell hbase to use external zk

export HBASE_MANAGES_ZK=false

 

vim hbase-site.xml

<configuration>

<!-- Specify the path where hbase is stored on HDFS-->

        <property>

                <name>hbase.rootdir</name>

                <value>hdfs://ns1/hbase</value>

        </property>

<!-- Specifies that hbase is distributed -->

        <property>

                <name>hbase.cluster.distributed</name>

                <value>true</value>

        </property>

<!-- Specify the address of zk, multiple are separated by ","-->

        <property>

                <name>hbase.zookeeper.quorum</name>

                <value>weekend05:2181,weekend06:2181,weekend07:2181</value>

        </property>

</configuration>

 

vim regionservers

weekend03

weekend04

weekend05

weekend06

 

3.2 Copy hbase to other nodes

scp -r /weekend/hbase-0.96.2-hadoop2/ weekend02:/weekend/

scp -r /weekend/hbase-0.96.2-hadoop2/ weekend03:/weekend/

scp -r /weekend/hbase-0.96.2-hadoop2/ weekend04:/weekend/

scp -r /weekend/hbase-0.96.2-hadoop2/ weekend05:/weekend/

scp -r /weekend/hbase-0.96.2-hadoop2/ weekend06:/weekend/

4. Copy the configured HBase to each node and synchronize the time.

 

5. Start all hbase

Start zk separately

./zkServer.sh start

start hdfs cluster

start-dfs.sh

Start hbase, run on the master node:

start-hbase.sh

6. Access the hbase management page through a browser

192.168.1.201:16010

7. To ensure the reliability of the cluster, start multiple HMasters

hbase-daemon.sh start master

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326856783&siteId=291194637