http://hbase.apache.org/
通过lib目录下的hadoop-core- ...jar可以看出适配的hadoop版本
hbase-0.98.6-hadoop2 => hadoop 2.2 hbase-0.96.2-hadoop2 => hadoop 2.2 hbase-0.98.6-hadoop1 => hadoop 1.2.1 hbase-0.96.2-hadoop1 => hadoop 1.2.1
下载及解压hbase安装包
修改conf/hbase-env.sh脚本, 设置环境变量
编辑hbase-site.xml
启动hbase
验证Hmaster已经启动
进入shell
hbase-env.sh
vi hbase/conf/hbase-env.sh export JAVA_HOME=/usr/java/jdk1.7.0_67
hbase-site.xml
<property> <name>hbase.rootdir</name> <value>file://home/hadoop/hbase/data</value> </property>
[hadoop@hadoop1 hbase]$ ./bin/start-hbase.sh starting master, logging to /home/hadoop/hbase/bin/../logs/hbase-hadoop-master-hadoop1.out [hadoop@hadoop1 hbase]$ jps 2959 Jps 2839 HMaster 2474 SecondaryNameNode 2552 JobTracker 2334 NameNode [hadoop@hadoop1 hbase]$ ./bin/hbase shell HBase Shell; enter ‘help<RETURN>‘ for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.98.6-hadoop1, r3645223d354a81af8d3d1cdfca9b3d45426f9959, Wed Sep 3 19:48:04 PDT 2014 hbase(main):001:0> quit [hadoop@hadoop1 hbase]$
本文出自 “晓风残月” 博客,请务必保留此出处http://kinda22.blog.51cto.com/2969503/1582572
原文地址:http://kinda22.blog.51cto.com/2969503/1582572