Ubuntu 12.04
Java 1.8.0
Hadoop-1.2.1
https://archive.apache.org/dist/hbase/hbase-0.94.16/
$sudo tar xzf hbase-0.94.16.tar.gz -C /usr/local/
Modify .bashrc
vi /home/admin(system name)/.bashrc
Add the following lines to .bashrc file
# Set Hbase-related environment variables
export HBASE_HOME=/usr/local/hbase/hbase-0.94.16
# Add Hbase bin/ directory to PATH
export PATH=$PATH:$HBASE_HOME/bin
Add the following lines to HBase xml files
These files are contained in the following directory
$ cd /usr/local/hbase-0.94.16/conf
export JAVA_HOME = / usr / lib/jvm/ jdk1.8.0export HBASE_MANAGES_ZK = true
hbase.cluster.distributedtrue
$start-all.sh
$jps6146 JobTracker
6400 TaskTracker
6541 Jps
5806 DataNode
6057 SecondaryNameNode
5474 NameNode
$./start-hbase.sh
7498 HQuorumPeer
5835 HMaster
8929 TaskTracker
7854 HRegionServer
8079 NameNode
8677 JobTracker
8975 Jps
8327 DataNode
8582 SecondaryNameNode
$./hbase shell