分布式hbase无法启动,错误信息:服务器尚未运行

xpszyzbs  于 2021-07-15  发布在  Hadoop
关注(0)|答案(0)|浏览(286)

我正在尝试建立一个基于hadoop的分布式hbase,在ubuntu20.04上有一个namenode,在localhost上有三个datanode,还有两个vm。当我启动hadoop和hbase时一切都很顺利,namenode上的jps信息:

44499 DataNode
44291 NameNode
45012 ResourceManager
45380 NodeManager
40408 QuorumPeerMain
46521 HRegionServer
44748 SecondaryNameNode
46188 HMaster
48733 Jps

datanode上的jps信息:

3968 QuorumPeerMain
5155 Jps
4980 HRegionServer
4782 NodeManager
4638 DataNode

但是当我尝试hbase shell并想查看使用'list'的表时,错误信息显示hbase实际上没有成功启动。。。

hbase(main):001:0> list
TABLE                                                                                                                            

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
    at org.apache.hadoop.hbase.master.HMaster.checkServiceStarted(HMaster.java:2923)
    at org.apache.hadoop.hbase.master.MasterRpcServices.isMasterRunning(MasterRpcServices.java:1182)
    at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:393)
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)

For usage try 'help "list"'

Took 8.6983 seconds

在日志中,我发现错误:

2021-01-12 09:33:40,124 INFO  [main-SendThread(pro2:2181)] zookeeper.ClientCnxn: Opening socket connection to server pro2/192.168.122.113:2181. Will not attempt to authenticate using SASL (unknown error)

搜索之后,我认为问题可能出在zookeeper上,所以我去查看zk日志,但没有发现任何错误,这让我很困扰。
这是my hbase-site.xml:

<configuration>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>

  <property>
        <name>hbase.rootdir</name>
        <value>hdfs://jyy-lenovo-legion:9000/hbase</value>
  </property>

  <property>
        <name>hbase.zookeeper.quorum</name>
        <value>jyy-lenovo-legion,pro1,pro2</value>
  </property>

  <!--
  property>
    <name>hbase.tmp.dir</name>
    <value>./tmp</value>
  </property
  -->
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
  </property>
</configuration>

和my zoo.cfg:

tickTime=2000
initLimit=10
syncLimit=5
dataDir=/usr/local/zookeeper/zkData
clientPort=2181
server.1=pro1:2888:3888
server.2=pro2:2888:3888

我对hbase、hadoop等还很陌生,有人能找出问题所在吗?提前谢谢!:)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题