码迷,mamicode.com
首页 > 其他好文 > 详细

HBase单机单节点配置

时间:2015-07-19 01:25:40      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

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单机单节点配置

标签:

原文地址:http://www.cnblogs.com/kenshinn/p/4657972.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!