Environment
-Hadoop
-No zookeeper (with HBase's own zookeeper, of course later I will switch to independent zookeeper)
HBase Introduction
Reference: What is HBase?
HBase Download
Address: http://mirrors.shu.edu.cn/apache/hbase/stable/
I chose hbase-1.4.8-bin.tar.gz.
Unzip, put the file under the/usr/local/hbase
Installation (configuration file)
1-. BASHRC (optional, for later operation convenient I configured)
Add $HBASE _home environment variable
CD ~ VI BASHRC export $HBASE _home=/usr/local/HBASE export PATH= $PATH: $HBASE _home/bin
2-hbase.env.sh (/usr/local/hbase/conf)
cd/usr/local/hbase/conf vi hbase-env.sh export java_home=....//JDK Path Export Hbase_mana Ges_zk=true //using HBase's own zookeeper
3-hbase.site.xml (/usr/local/hbase/conf)
cd/usr/local/hbase/conf
VI Hbase-site.xml
Add content
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://kouri (localhost,127.0.0.1):9000/hbase</value>//hbase dependent on HDFs-can view folders on HDFs
</property>
<property>
<name>hbase.cluster.distributed</name>//Use of distributed
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/hbase/data/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>//Start ZK server list, distributed under must match
<value>Kouri</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>//client Link Zookeeper port, default 2181
<value>2182</value>
</property>
</congiguration>
Start (start Hadoop first)
start-hbase.sh
Shut down
stop-hbase.sh
View process
JPs
Appears: Hmaster,hquorumpeer,hregionserver
Related demos
View HBase Scenarios in HDFs
HDFs dfs-ls/hbase
Start the HBase shell
HBase Shell
Web interface for HBase
http://localhost: -HBase 1 ... after version
HBase into the pit to solve
Refer to another article: deceptive's hbase!!!
X
HBase-pseudo-distributed installation process