突然,我的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的时间间隔为23秒。
在正常情况下,时间间隔只有3秒。
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还可以,但是突然无法快速启动。
暂无答案!
目前还没有任何答案,快来回答吧!