HBase单机单节点配置

OS:CentOS 6.5 [GNU/Linux 2.6.32-504.23.4.el6.x86_64]

HBase Version : hbase-0.94.27

 

1. get the distrubution of habse

# wget http://mirror.bjtu.edu.cn/apache/hbase/hbase-0.94.27/hbase-0.94.27.tar.gz

 

2. gunzip

tar hbase-0.94.27.tar.gz

 

3. update configuration

#cd hbase-0.94.27

#vim conf/hbase-site.xml

<property>

         <name>hbase.rootdir</name>

         <value>file:///data/opt/data/hbase</value>

</property>

<property>

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

        <value>/data/opt/data/zookeeper/hbase</value>

</property>

<property>

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

         <value>2181</value>

</property>

<property>

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

         <value>true</value>

</property>

<property>

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

         <value>localhost</value>

</property>

4. start zookeeper running at port 2181

5. start hbase HMaster and HRegionServer

#bin/start-hbase.sh

6. check status

#jps

3139 HMaster
3428 Jps
2984 QuorumPeerMain
3274 HRegionServer

你可能感兴趣的:(hbase)