Prerequisites
Hadoop cluster is successfully built. Here we use Hadoop1.0.3 + HBase0.94.1
Configure HBase
1. Modify conf/hbase-env.sh and add jdk support
Export JAVA_HOME =/home/hadoop/jdk1.6.0 _ 39
2. Modify conf/hbase-site.xml
<Property>
<Name> hbase. rootdir </name>
<Value> hdfs: // master: 9000/hbase </value>
</Property>
<Property>
<Name> hbase. cluster. distributed </name>
<Value> true </value>
</Property>
<Property>
<Name> hbase. master </name>
<Value> hdfs: // master: 9000 </value>
</Property>
<Property>
<Name> hbase. zookeeper. quorum </name>
<Value> master, slave1, and slave2 </value>
</Property>
<Property>
<Name> hbase. zookeeper. property. dataDir </name>
<Value>/home/hadoop/data/zookeeper </value>
</Property>
3. Modify conf/regionservers
Slave1
Slave2
Add all datanode nodes configured for Hadoop)
4. scp to all subnodes
5. Start HBase
$ ../Bin/start-hbase.sh
HBase basic operations
1. HBase web Interface
Http: // master: 60010/
2. shell client HBase shell command)
$./Bin/hbase shell
This article from the "Li xiaolazy keyboard Road" blog, please be sure to keep this http://libangsen.blog.51cto.com/3599182/1135723