Linux环境下下安装hbase单机版
环境要求:
1.linux 系统
2.jdk
安装过程
1.下载解压安装文件
wget http://mirror.bit.edu.cn/apac...
tar xvfz hbase-0.94.16.tar.gz
2.启动HBase
/usr/hbase-0.94.16/bin/start-hbase.sh
如果报错
+======================================================================+
Error: JAVA_HOME is not set and Java could not be found |
---|
Please download the latest Sun JDK from the Sun Java web site |
> http://java.sun.com/javase/do... < |
Hadoop requires Java 1.6 or later. |
NOTE: This script will find Sun Java whether you install using the |
binary or the RPM based installer. |
+======================================================================+
如图所示
需要修改HBase的配置文件,配置文件在conf文件夹下
vi conf/hbase-env.sh
增加JDK的位置,以本机为例JDK被放在/usr/lib/jdk下
export JAVA_HOME=/usr/lib/jdk/jdk1.7.0_51/
如果成功启动会有如下提示信息:starting master, logging to /usr/hbase-0.94.16/bin/../logs/hbase-root-master-localhost.localdomain.out
3.查看管理界面
访问管理界面的地址:http://192.168.105.130:16010/master-status(从1.2.6开始,默认端口改成了16010,如果你是外网访问,如访问不到,应该是防火墙拦截了,因此要开放该端口,然后重启防火墙就生效了)
相关推荐
eternityzzy 2020-07-19
晨曦之星 2020-08-14
lwb 2020-07-26
大而话之BigData 2020-06-16
ITwangnengjie 2020-06-14
gengwx00 2020-06-11
大而话之BigData 2020-06-10
鲸鱼写程序 2020-06-08
needyit 2020-06-04
strongyoung 2020-06-04
WeiHHH 2020-05-30
ITwangnengjie 2020-05-09
gengwx00 2020-05-08
gengwx00 2020-05-09
大而话之BigData 2020-05-06
Buerzhu 2020-05-01
gengwx00 2020-04-30