To install Hadoop, refer to: Hadoop.
Install Hadoop, see: http://www.linuxidc.com/Linux/2012-06/63948.htm
Install Zookeeper, refer to: http://www.linuxidc.com/Linux/2012-07/65607.htm
Install hbase
Cd/home/hadoop/hbase
Sudo wget http://mirror.bit.edu.cn/apache/hbase/stable/hbase-0.92.1.tar.gz
# Download hbase
Tar xvzf hbase-0.92.1.tar.gz
# Extract
Ln-s hbase-0.92.1.tar.gz hbase
# Create soft link
Edit/etc/profile and set Environment Variables
# Hbase Configuration
Export HBASE_HOME =/home/hadoop/hbase/
Export PATH =
$ PATH:
$ HBASE_HOME/Bin
Hbase is based on hdfs, hbase configuration mainly involves three files under the conf directory: hbase-env.sh, hbase-site.xml, regionservers.
Edit hbase-env.sh
Export JAVA_HOME =/usr/lib/jvm/java-6-openjdk-i386
Export HBASE_CLASSPATH =/home/hadoop/conf
Export HBASE_OPTS =
" -XX: + UseConcMarkSweepGC "
Export HBASE_MANAGES_ZK =
True
Edit hbase-site.xml
"
1.0 "?>
"
Text/xsl "Href =
" Configuration. xsl "?>
Hbase. rootdir
Hdfs: // namenode/hbase
The directory shared by region servers.
Hbase. master. port
60000
Hbase. cluster. distributed
True
Hbase. zookeeper. property. clientPort
2181
Hbase. zookeeper. quorum
Zookeeper
Modify regionservers
Localhost # Local Machine
Start hbase
Start-hbase.sh
Enter the jps command to view the process
NameNode
DataNode
Jps
HRegionServer
SecondaryNameNode
TaskTracker
JobTracker
QuorumPeerMain
HMaster
Test hbase
Hbase shell
Create 'test', 'cf'
Stop hbase
Stop-hbase.sh