Hadoop big data platform is manually built-hbase

hbase is also based on HDFS. This section is still installed in full distribution mode. Because the time error of each node is too large, the startup of hbase will fail. So the NTP time synchronization service has been installed previously.

 

Unzip /opt/hbase-1.2.0-cdh5.8.0.tar.gz like hive

tar -zxvf hbase-1.2.0-cdh5.8.0.tar.gz

 

1. Modify hbase_env.sh under hbase-1.2.0-cdh5.8.0\conf

  Add the following configuration

export JAVA_HOME=/usr/java/jdk1.7.0_79

#Declare to use the built-in Zookeeper. Otherwise, you can install a separate Zookeeper

export HBASE_MANAGES_ZK=true

2. Modify the regionservers under hbase-1.2.0-cdh5.8.0\conf

slave1

slave2

That is, the file should be distributed to these two nodes.

 

3. Configure environment variables

Add to /etc/profile

export HBASE_HOME=/opt/hbase-1.2.0-cdh5.8.0

export PATH=$HBASE_HOME/bin:$PATH

Environment variables take effect

source /etc/profile

 

4. Configure hbase-site.xml

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

 

<configuration>  

    <property>

        <name>hbase.rootdir</name>

        <value>hdfs://master:9000/hbase</value>

    </property>

    <property>

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

        <value>/home/hadoop/software/zookeeper</value>

    </property>

    <property>

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

        <value>true</value>

    </property>

    <property>

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

        <value>master,slave1,slave2</value>

    </property>

<property>

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

    <value>2181</value>

   <description> The port to connect to zookeeper, the default is 2181</description>

  </property>

  <property>

    <name>hbase.master</name>

    <value>master</value>

    <description>Specify hbase cluster master node</description>

  </property>

<property><name>hbase.thrift.support.proxyuser</name><value>true</value></property>

<property><name>hbase.regionserver.thrift.http</name><value>true</value></property>

</configuration>  

 

 

5. Copy the /opt/hbase-1.2.0-cdh5.8.0/ directory in the master to slave1, slave2

scp -r /opt/hbase-1.2.0-cdh5.8.0/ hadoop@slave1:/opt

scp -r /opt/hbase-1.2.0-cdh5.8.0/ hadoop@slave2:/opt

 

6. Start /opt/hbase-1.2.0-cdh5.8.0/bin/start-hbase.sh

master node start

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326394975&siteId=291194637