首页 > 代码库 > hbase0.98.9安装

hbase0.98.9安装

HBASE安装

实验环境:hadoop2.7.3,linux

所用安装包:hbase-0.98.9-hadoop2-bin.tar.gz

解压软件包:tar -zxvf hbase-0.98.9-hadoop2-bin.tar.gz -C /usr/local/

进入HBASE安装目录:

[hadoop@master conf]$ cd /usr/local/hbase/conf/

修改配置文件:

[hadoop@master conf]$ vim hbase-site.xml

<configuration>

 

<property>

        <name>hbase.rootdir</name>

        <value>hdfs://master:9000/hbase</value>

</property>

<property>

        <name>hbase.zookeeper.property.dataDir</name>

        <value>/usr/local/hadoop/zookeeper</value>

</property>

<property>

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

        <value>true</value>

</property>

<property>

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

        <value>master,slave1,slave2</value>

</property>

 

</configuration>

 

[hadoop@master conf]$ vim regionservers

slave1

slave2

把文件拷贝到其他节点:

[hadoop@master local]$ scp -r hbase hadoop@slave1:/usr/local/

[hadoop@master local]$ scp -r hbase hadoop@slave2:/usr/local/

在master上启动hbase

[hadoop@master hbase]$ start-hbase.sh

JPS查看结果:

[hadoop@master hbase]$ jps

3656 SecondaryNameNode

3455 NameNode

5297 HQuorumPeer

5584 Jps

3817 ResourceManager

5398 HMaster

[hadoop@slave1 ~]$ jps

2703 DataNode

2778 NodeManager

3226 HRegionServer

3566 Jps

3154 HQuorumPeer

hbase0.98.9安装