无法访问 HBase Web UI

Flo*_*ain 2 hadoop hbase

我正在关注HBase 的快速入门文档。

但是,我无法访问 HBase Web UI。

我尝试使用这些地址:

我尝试了不同的端口,因为文档说使用 60010,但快速入门说使用 16010。

这些都不起作用。

这是我的 hbase-site.xml

<configuration>
<property>
    <name>hbase.rootdir</name>
    <value>file:///home/hduser/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/hduser/zookeeper</value>
  </property>
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
    <description>
      Controls whether HBase will check for stream capabilities (hflush/hsync).

      Disable this if you intend to run on LocalFileSystem, denoted by a rootdir
      with the 'file://' scheme, but be mindful of the NOTE below.

      WARNING: Setting this to false blinds you to potential data loss and
      inconsistent system state in the event of process and/or node failures. If
      HBase is complaining of an inability to use hsync or hflush it's most
      likely not a false positive.
    </description>
  </property>
</configuration>
Run Code Online (Sandbox Code Playgroud)

注意:访问 shell 效果很好:

./hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/hduser/hbase-1.4.12/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/hduser/hadoop-2.7.3/share/hadoop/common/lib/slf4j-log4j12-1.7.10.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]
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 1.4.12, r6ae4a77408ad35d6a7a4e5cebfd401fc4b72b5ec, Sun Nov 24 13:25:41 CST 2019

hbase(main):001:0> 
Run Code Online (Sandbox Code Playgroud)

为什么我无法访问 Web UI?我缺少什么?

fac*_*cha 8

独立模式下的HBase只会选择一些随机端口来监听。

转到“logs”目录并执行

grep 'Jetty' *
Run Code Online (Sandbox Code Playgroud)

这将向您显示 HBase 选择运行其网络服务器的端口。