HBase installation and deployment - a fully distributed

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43671437/article/details/102731600

HBase installation and deployment

Installation premise deployment

hadoop cluster has started deploying
zookeeper cluster has started deployment

HBase installation

Download and install hbase-1.3.1

deploy

1, the configuration hbase-env.sh

export JAVA_HOME=/usr/local/src/jdk1.6.0_144 
export HBASE_MANAGES_ZK=false 

2, the configuration hbase-site.xml

<configuration>  
	<property>
   		<name>hbase.rootdir</name> 
		<value>hdfs://master:9000/HBase</value>
     </property> 
 
 <property>
   	 <name>hbase.cluster.distributed</name> 
      <value>true</value>
 </property> 
 
   <!-- 0.98 后的新变动,之前版本没有.port,默认端口为 60000 -->
  <property>
      <name>hbase.master.port</name>   
      <value>16000</value>
  </property> 
 
 <property>
       <name>hbase.zookeeper.quorum</name>
       <value>master,slave1,slave2</value>
       </property> 
 
 <property>
       <name>hbase.zookeeper.property.dataDir</name>
   	<value>/usr/local/src/zookeeper-3.4.10/zkData</value>
 </property>
  </configuration> 

(3) configuration file regionservers

master
slave1
slave2

(4) flexible connection profile to HBase hadoop

[root@master src]# ln -s /usr/local/src/hadoop2.7.2/etc/hadoop/core-site.xml /usr/local/src/hbase/conf/coresite.xml 
[root@master src]# ln -s /usr/local/src/hadoop2.7.2/etc/hadoop/hdfs-site.xml /usr/local/src/hbase/conf/hdfssite.xml 

Guess you like

Origin blog.csdn.net/weixin_43671437/article/details/102731600
Recommended