0 Installation Prerequisites: jDK7, hadoop1.1.2
1 Download the HBase version that corresponds to Hadoop:
http://mirror.bit.edu.cn/apache/hbase/hbase-0.98.12/
I use the image of the bit university here, download the corresponding HBase package, the bin represents the compiled, HADOOP1 representative support HADOOP1, Hadoop is support HADOOP2
2 after the download is complete, select a directory, install HBase, and then
To the ${hbase_homo}/conf directory, modify the hbase-env.sh file:
Write
- Export JAVA_HOME=/USR/JAVA/JDK1. 6/
- Export hbase_classpath=/usr/hadoop/conf
- Export hbase_manages_zk=true
3 modifying Hbase-site.xml files at times
- <property>
- <name>hbase.rootdir</name>
- <value>hdfs://192.168.56.101:9000/hbase</value>
- </property>
- <property>
- <name>hbase.cluster.distributed</name>
- <value>true</value>
- </property>
PS:hbase.rootdir guides the path into HDFs.
Hbase_manages_zk=true is open zookeeper
4 test:
Start Hadoop first:./bin/start-all.sh
And then start start-hbase.sh under HBase.
Finally, use JPS to view the process:
Have hm, HR, QU, and HD,ND,SD to show success ~
Hbase0.98 Environment Construction