Download HBase
Extract file
Put this file on each DataNode and NameNode machines
Each machine have to be the same login and the same url directory for HBase
On HMaster and HRegionServers (same idea that NameNode and DataNode for Hadoop)
Edit conf/hbase-env.sh
export JAVA_HOME=~/yourPathToJavaJDK-6
export HBASE_MANAGES_ZK=false
HBASE_MANAGES_ZK=true to run a local HBase and skip section 3 because HBase will create his own Zookeeper server
Edit conf/hbase-site.xml replacing HERE by ip(or host) of the NameNode
List onhbase.zookeeper.quorum all zookeeper ip listed before on 3.6
<configuration> <property> <name>hbase.rootdir</name> <value>hdfs://HERE:54310/user/yourAccount/hbase</value> </property> <property> <name>hbase.defaults.for.version.skip</name> <value>true</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>123.456.789.01,456.789.123.02,789.123.456.03,...</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/SelectYourSaveDirectory</value> </property> </configuration>
On HMaster (Same machine that the NameNode), edit conf/regionservers and list all the HRegionServers (on per line)
On HRegionServers (Same machine that the NameNode), edit conf/regionservers and list all the HRegionServers (on per line) including localhost for the own ip adress of HRegionServer
Start HBase
bin/start-hbase.sh
Check if HBase is running
bin/hbase shell
hbase(main):001:0> status 1 servers, 0 dead, 2.0000 average load
Create the EventPath table where will be save persistence calculations
hbase(main):002:0> create 'EventPath','primary','secondary'
Attention : To be very strict with the case sensitivity
hbase(main):003:0> list TABLE EventPath 1 row(s) in 0.0470 seconds
hbase(main):004:0> status 1 servers, 0 dead, 3.0000 average load