HBase 安装过程记录

http://blog.csdn.net/chenxingzhen001/article/details/7756129

 

环境:

操作系统Centos 6.4 32-bit

三台节点

 ip                       主机名   

192.168.12.23 testHostName1

192.168.12.24 sg202

192.168.12.25 sg203     

主机名设置在etc下面的hosts文件里修改

 

 

三个节点上已经布署好hadoop集群并正常启动

 

1.下载并解压hbase-0.94.7.tar.gz到/home/hadoop/installer下

hbase-env.sh

export JAVA_HOME=/home/hadoop/installer/jdk7u65
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
export HBASE_HOME=/home/hadoop/installer/hbase 
export HADOOP_HOME=/home/hadoop/installer/hadoop-1.1.2  
export PATH=$PATH:$HBASE_HOME/bin  
export HBASE_MANAGES_ZK=true 

 

hbase-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>  
    <property>  
        <name>hbase.rootdir</name>r  
        <value>hdfs://testHostName1:9000/hbase</value>    //必须与你的hadoop主机名,端口号一致;Hbase该项并不识别机器IP,只能使用机器hostname才行
    </property>  
    <property>  
        <name>hbase.cluster.distributed</name>  
        <value>true</value>  
    </property>  
    <property>  
        <name>hbase.zookeeper.quorum</name>  
        <value>testHostName1,sg202,sg203</value>          //hbase.zookeeper.quorum 的个数必须是奇数  
    </property>  
  
    <property>  
        <name>hbase.master</name>  
        <value>192.168.12.23:60000</value>  
    </property>  
  
    <property>  
        <name>zookeeper.session.timeout</name>  
        <value>60000</value>  
    </property>  
    <property>  
        <name>hbase.zookeeper.property.clientPort</name>  
        <value>2222</value>  
    </property>  
</configuration> 

 

 

regionservers

localhost
sg202
sg203

 

posted on 2014-08-20 16:48  lovebeauty  阅读(306)  评论(0编辑  收藏  举报

导航