Today, we attempted to integrate HBase with Hadoop. My environment is hadoop2.2.0 + hbase-0.96.1.1-hadoop2, both in pseudo distribution mode.
The system is CentOS 6.4 and 64-bit. hadoop pseudo-distributed installation and startup have been installed. The machine name is admin and the user name is hadoop2.
1. Download hbase-0.96.1.1-hadoop2-bin.tar.gz and decompress it to the installation directory.
2. Modify ~ Hbase-0.96.1.1-hadoop2 files under/hbase-env.sh/conf directory
Export JAVA_HOME =/usr/java/jdk1.7.0 _ 25 (changed to the self-configured java path)
Export HBASE_MANAGES_ZK = true (enabling hbase to manage zookeeper)
3. Modify ~ The hbase-0.96.1.1-hadoop2 file under the/hbase-site.xml/conf directory.
<Configuration>
<Property>
<Name> hbase. rootdir </name>
<Value> hdfs: // admin: 9000/hbase </value>
</Property>
<Property>
<Name> hbase. cluster. distributed </name>
<Value> true </value>
</Property>
<Property>
<Name> dfs. replication </name>
<Value> 1 </value>
</Property>
<Property>
<Name> hbase. zookeeper. quorum </name>
<Value> localhost </value>
</Property>
</Configuration>
The address in hbase. rootdir must be the same as the directory configured in hadoop2.2.0, and then add the directory hbase you want to create.
For the configuration of hbase. zookeeper. quorum, I initially wrote the machine Name admin, but I always reported an error and changed it to localhost. It seems that the admin cannot find the resolution address.
4. Start
Cd ~ /Hbase-0.96.1.1-hadoop2/bin
Start-hbase.sh
5. Check whether startup is enabled.
Enter jps in shell, and three processes are added. HRegionServer, HQnorumPeer, HMaster
You can also view http: // admin: 60010 in the browser. (Admin indicates the machine name configured)
HBase details: click here
HBase: click here
Hadoop + HBase cloud storage creation summary PDF
Regionserver startup failed due to inconsistent time between HBase nodes
Hadoop + ZooKeeper + HBase cluster configuration
Hadoop cluster Installation & HBase lab environment setup
HBase cluster configuration based on Hadoop cluster'
Hadoop installation and deployment notes-HBase full distribution mode installation
Detailed tutorial on creating HBase environment for standalone Edition