大数据系列教程_hbase集群安装

6、hbase集群安装

6.1、hbase-env.sh基本配置

增加以下几个配置

export JAVA_HOME=/home/hadoop/cluster/jdk1.7.0_67

export HBASE_HOME=/home/hadoop/hbase09611cdh501

export HBASE_MANAGES_ZK=false

6.2、hbase-site.xml

<configuration>

 

<property>

   <name>hbase.hregion.max.filesize</name>

      <value>1073741824</value>

         <description>

            Maximum HStoreFile size. If any one of a column families' HStoreFiles has

               grown to exceed this value, the hosting HRegion is split in two.

                  Default: 256M.

                  </description>

                   </property>

                   <property>

                      <name>hbase.hregion.memstore.flush.size</name>

                         <value>134217728</value>

                          </property>

                          <property>

                          <name>hbase.hregion.majorcompaction</name>

                          <value>0</value>

                          </property>

                          <property>

                              <name>hbase.regionserver.regionSplitLimit</name>

                                  <value>1</value>

                                  </property>

                                  <property>

                                      <name>hbase.hstore.compactionThreshold</name>

                                          <value>2147483647</value>

                                          </property>

                                          <property>

 

    <name>hbase.hstore.blockingWaitTime</name>

        <value>120000</value>

        </property>

 

<property>

<name>hbase.rpc.timeout</name>

<value>180000</value>

</property>

 

<property>

<name>hbase.regionserver.handler.count</name>

<value>100</value>

</property>

 

    <property>

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

                <value>2181</value>

                    </property>

 

    <property>

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

                <value>zookeeper1,zookeeper2,zookeeper3</value>

                   </property>

 

   <property>

         <name>zookeeper.session.timeout</name>

               <value>180000</value>

                   </property>

 

   <property>

       <name>hbase.rootdir</name>

           <value>hdfs://hadoopCluster:8020/hbasedir</value>

             </property>

               <property>

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

                       <value>true</value>

                          </property>

 

  <property>

      <name>hbase.master</name>

          <value>master:60000</value>

              </property>

 

<property>

<name>hbase.master.distributed.log.splitting</name>

<value>false</value>

</property>

</configuration>

 

6.3、regionservers

node1

node2

node3

node4

node5

 

最后将hadoophdfs-site.xmlcore-site.xml文件复制到hbase/conf文件夹下面

Hbase backup conf文件夹下面建立 backup-masters文件夹,写入backup-masters的地址即可$bin/hbase-daemon.sh --config ${HBASE_CONF_DIR}start/stop master --backup 

6.4、增加regionserver

增加regionservers文件添加节点

./hbase-damon.sh即可

 

你可能感兴趣的:(大数据,hbase,yarn,masterha,大数据系列教程)