无法在 Hbase 安装中启动主服务器和区域服务器

Unable to start the master and region servers in Hbase installation

hduser@ubuntu:~/hbase/hbase-1.1.2/bin$ ./start-hbase.sh localhost:启动 zookeeper,登录到 /home/hduser/hbase/hbase-1.1.2/bin/../logs/hbase-hduser-zookeeper-ubuntu.out 启动 master,登录 /home/hduser/hbase/hbase-1.1.2/logs/hbase-hduser-master-ubuntu.out 启动区域服务器,登录到 /home/hduser/hbase/hbase-1.1.2/logs/hbase-hduser-1-regionserver-ubuntu.out hduser@ubuntu:~/hbase/hbase-1.1.2/bin$ jps 15727 名称节点 29301 HQuorumPeer 15961 数据节点 29613 日元 16197 二级名称节点 16513 任务跟踪器 16282 工作追踪器 hduser@ubuntu:~/hbase/hbase-1.1.2/bin$ cat /home/hduser/hbase/hbase-1.1.2/logs/hbase-hduser-master-ubuntu.out SLF4J:Class 路径包含多个 SLF4J 绑定。 SLF4J:在 [jar:file:/home/hduser/hbase/hbase-1.1.2/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 中找到绑定 SLF4J:在 [jar:file:/home/hduser/hadoop/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] 中找到绑定 SLF4J:有关解释,请参阅 http://www.slf4j.org/codes.html#multiple_bindings。 SLF4J:实际绑定的类型为 [org.slf4j.impl.Log4jLoggerFactory] hduser@ubuntu:~/hbase/hbase-1.1.2/bin$ cat /home/hduser/hbase/hbase-1.1.2/logs/hbase-hduser-1-regionserver-ubuntu.out SLF4J:Class 路径包含多个 SLF4J 绑定。 SLF4J:在 [jar:file:/home/hduser/hbase/hbase-1.1.2/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 中找到绑定 SLF4J:在 [jar:file:/home/hduser/hadoop/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] 中找到绑定 SLF4J:有关解释,请参阅 http://www.slf4j.org/codes.html#multiple_bindings。 SLF4J:实际绑定的类型为 [org.slf4j.impl.Log4jLoggerFactory]

我可以看到主服务器和区域服务器未启动。因此我无法使用 hbase shell.

连接到 hbase

Hadoop 版本 - 1.2.1 Hbase 版本 - 1.1.2

这是您遇到的错误

Caused by: java.lang.UnsatisfiedLinkError: org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative()V
    at org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative(Native Method)
    at org.apache.hadoop.security.JniBasedUnixGroupsMapping.<clinit>(JniBasedUnixGroupsMapping.java:49)
    at org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback.<init>(JniBasedUnixGroupsMappingWithFallback.java:38)

问题是因为hbase1.1.2只支持Hadoop-2.4.x +

您需要将 hadoop 迁移到 2.4 才能正常工作

查看此 link 了解更多详情 https://hbase.apache.org/book.html#basic.prerequisites