Zookeeper启动变慢,Hbase启动失败

时间:2019-04-01 08:38:21

标签: hbase apache-zookeeper

突然,我的zookeeper启动速度变慢,我检查了日志并找到

**1** Mon Apr  1 16:33:13 CST 2019 Starting zookeeper on hadoop11
**2** core file size          (blocks, -c) 0
      data seg size           (kbytes, -d) unlimited
      scheduling priority             (-e) 0
      file size               (blocks, -f) unlimited
      pending signals                 (-i) 2065499
      max locked memory       (kbytes, -l) 64
      max memory size         (kbytes, -m) unlimited
      open files                      (-n) 1024
      pipe size            (512 bytes, -p) 8
      POSIX message queues     (bytes, -q) 819200
      real-time priority              (-r) 0
      stack size              (kbytes, -s) 10240
      cpu time               (seconds, -t) unlimited
      max user processes              (-u) 102400
      virtual memory          (kbytes, -v) unlimited
      file locks                      (-x) unlimited
**3** 2019-04-01 16:33:34,280 INFO  [main] quorum.QuorumPeer: Resolved hostname: hbase1 to address: hbase1/127.0.0.1

log#1和log#3的时间间隔为23s。

通常情况下,时间间隔只有3s。

缓慢的ZK会使HMaster启动失败:

2019-04-01 16:33:35,341 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster.
        at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:3201)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:236)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
        at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:3212)
Caused by: org.apache.hadoop.hbase.ZooKeeperConnectionException: master:160000x0, quorum=hadoop11:2181, baseZNode=/hbase Unexpected KeeperException creating base node

我对慢速情况一无所知。以前的ZK可以,但是突然变得无法快速启动。

0 个答案:

没有答案