1、CentOS7 安装HBase 环境
参考文章地址:https://blog.csdn.net/zhouzhiwengang/article/details/94616635
问题:HBase 的shell 命令可以正常执行,但是无法访问HBase 后台管理界面
原因:hbase的master web 默认是不运行的,所以需要自己配置默认端口。
解决办法:在hbase-site.xml中加入如下内容:
<property>
<name>hbase.master.info.port</name>
<value>60010</value>
</property>
重新启动HBase 集群的regionserver服务和hbase 服务,执行如下指令:
[root@master bin]# ./hbase-daemon.sh stop regionserver #关闭 regionserver
running regionserver, logging to /usr/local/hadoop/hbase-2.1.0/logs/hbase-root-regionserver-master.out
stopping regionserver.
[root@master bin]# ./stop-hbase.sh #关闭 hbase
stopping hbase............
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-3.0.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hbase-2.1.0/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[root@master bin]# ./hbase-daemon.sh start regionserver #启动 regionserver
running regionserver, logging to /usr/local/hadoop/hbase-2.1.0/logs/hbase-root-regionserver-master.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-3.0.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hbase-2.1.0/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[root@master bin]# ./start-hbase.sh #启动 hbase
效果截图: