Cd/opt/hbase-0.98.13-hadoop2/conf
VI hbase-env.sh
Export java_home=/opt/jdk1.7.0_75
VI Hbase-site.xml
<!--set the HBase root directory, Master is the hostname--> of the machine
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>
<!--fully distributed mode--
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<!--configuring zookeeper cluster Address--
<property>
<name>hbase.zookeeper.quorum</name>
<value>master</value>
</property>
<!--configuration Zookeeper data storage location--
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/zookeeper-3.4.6/tmp/data</value>
</property>
Start
/opt/hbase-0.98.13-hadoop2/bin/start-hbase.sh
Enter the shell
/opt/hbase-0.98.13-hadoop2/bin/hbase Shell
Some basic commands for hbase shell, refer to
http://my.oschina.net/u/877759/blog/341354
Java operation HBase Some of the encapsulation code, with the Gradle for management, can run directly
Https://github.com/chenmiao2/hbaseDemo
hbase-0.98 Integrated hadoop-2.6 with Java operation code