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]$
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。