<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Zookeeper not running in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201721#M163728</link>
    <description>&lt;P&gt;The really confusing part for me is Ambari shows ZK as running&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74507-screen-shot-2018-05-21-at-113524-am.png" style="width: 1234px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17415iCBCD601373673864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74507-screen-shot-2018-05-21-at-113524-am.png" alt="74507-screen-shot-2018-05-21-at-113524-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 05:28:11 GMT</pubDate>
    <dc:creator>mike_w_wong</dc:creator>
    <dc:date>2019-08-18T05:28:11Z</dc:date>
    <item>
      <title>Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201719#M163726</link>
      <description>&lt;P&gt;Apologies if this is basic question.  But I seem to have a problem getting my Zookeeper to run.&lt;/P&gt;&lt;P&gt;I discovered the problem when I couldn't get a bunch of my services to run. Looking at the log files, there seems to be a recurring theme.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HiveServer2&lt;/STRONG&gt;-&lt;/P&gt;&lt;P&gt;p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545}&lt;/P&gt;&lt;P&gt;2018-05-18 08:33:38,723 FATAL [main]: server.HiveServer2 (HiveServer2.java:addServerInstanceToZooKeeper(217)) - Unable to create HiveServer2 namespace: hiveserver2 on &lt;STRONG&gt;ZooKeeper&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yarn&lt;/STRONG&gt;-&lt;/P&gt;&lt;P&gt;p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545}&lt;/P&gt;&lt;P&gt;2018-05-21 14:41:55,687 WARNavailability.MetricCollectorHAHelper (MetricCollectorHAHelper.java:findLiveCollectorHostsFromZNode(90)) - Unable to connect to &lt;STRONG&gt;zookeeper&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;org.apache.hadoop.metrics2.sink.relocated.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ambari-metrics-cluster&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kafka&lt;/STRONG&gt;-&lt;/P&gt;&lt;P&gt;p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545}&lt;/P&gt;&lt;P&gt;[2018-05-18 08:25:36,626] INFO shutting down (kafka.server.KafkaServer)&lt;/P&gt;&lt;P&gt;[2018-05-18 08:25:36,630] INFO shut down completed (kafka.server.KafkaServer)&lt;/P&gt;&lt;P&gt;[2018-05-18 08:25:36,630] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)&lt;/P&gt;&lt;P&gt;org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to &lt;STRONG&gt;zookeeper&lt;/STRONG&gt; server within timeout: 25000&lt;/P&gt;&lt;P&gt;So, I went back to check Zookeeper on each on my machines and discovered this:&lt;/P&gt;&lt;PRE&gt;[mike_w_wong@slave1 bin]$ ./zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /usr/hdp/current/zookeeper-server/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.&lt;/PRE&gt;&lt;P&gt;From the docs, I tried to get ZK running:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_command-line-installation/content/ref-9459670c-aa15-4dee-ac56-4552e0fcf4d4.1.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_command-line-installation/content/ref-9459670c-aa15-4dee-ac56-4552e0fcf4d4.1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'm not having any luck.&lt;/P&gt;&lt;P&gt;Can anyone help??&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:15:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201719#M163726</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2022-09-16T13:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201720#M163727</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Mike Wong"&gt;@Mike Wong&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If your Ambari is up and running, try using the Ambari UI, See attached screenshot&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6039i788FF4B403A8BA0E/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="mikewong.jpg" title="mikewong.jpg" /&gt;</description>
      <pubDate>Mon, 21 May 2018 22:39:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201720#M163727</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-21T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201721#M163728</link>
      <description>&lt;P&gt;The really confusing part for me is Ambari shows ZK as running&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74507-screen-shot-2018-05-21-at-113524-am.png" style="width: 1234px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17415iCBCD601373673864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74507-screen-shot-2018-05-21-at-113524-am.png" alt="74507-screen-shot-2018-05-21-at-113524-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:28:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201721#M163728</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2019-08-18T05:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201722#M163729</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Running a ZK service check-Smoke test failed&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5/package/scripts/service_check.py", line 73, in &amp;lt;module&amp;gt;
    ZookeeperServiceCheck().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5/package/scripts/service_check.py", line 59, in service_check
    logoutput=True
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/var/lib/ambari-agent/tmp/zkSmoke.sh /usr/hdp/current/zookeeper-client/bin/zkCli.sh ambari-qa /usr/hdp/current/zookeeper-client/conf 2181 False kinit no_keytab no_principal /var/lib/ambari-agent/tmp/zkSmoke.out' returned 3. zk_node1=hdp.c.my-project-1519895027175.internal
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:873)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:708)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:703)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Running test on host hdp.c.my-project-1519895027175.internal
Connecting to hdp.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: hdp.c.my-project-1519895027175.internal:2181(CONNECTING) 0] get /zk_smoketest
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1184)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Connecting to hdp.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: hdp.c.my-project-1519895027175.internal:2181(CONNECTING) 0] ls /
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1472)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1500)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:737)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1184)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Data associated with znode /zk_smoketests is not consistent on host hdp.c.my-project-1519895027175.internal
Running test on host slave1.c.my-project-1519895027175.internal
Connecting to slave1.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: slave1.c.my-project-1519895027175.internal:2181(CONNECTING) 0] get /zk_smoketest
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1184)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Connecting to slave1.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: slave1.c.my-project-1519895027175.internal:2181(CONNECTING) 0] ls /
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1472)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1500)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:737)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1184)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Data associated with znode /zk_smoketests is not consistent on host slave1.c.my-project-1519895027175.internal
Running test on host slave2.c.my-project-1519895027175.internal
Connecting to slave2.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: slave2.c.my-project-1519895027175.internal:2181(CONNECTING) 0] get /zk_smoketest
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1184)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Connecting to slave2.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: slave2.c.my-project-1519895027175.internal:2181(CONNECTING) 0] ls /
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1472)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1500)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:737)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1184)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Data associated with znode /zk_smoketests is not consistent on host slave2.c.my-project-1519895027175.internal
Connecting to hdp.c.my-project-1519895027175.internal:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Welcome to ZooKeeper!
JLine support is enabled
[zk: hdp.c.my-project-1519895027175.internal:2181(CONNECTING) 0] delete /zk_smoketest
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:873)
	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:708)
	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:596)
	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:368)
	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:328)
	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:287)
Zookeeper Smoke Test: Failed&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 May 2018 23:06:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201722#M163729</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-21T23:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201723#M163730</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/192218/@Mike%20Wong"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Stop the zookeeper through Ambari UI. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Then check for any zookeeper rogue process still running remember you had tried to start it manually &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ ps -ef grep | zookeeper &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Note the PID from the above output &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ kill -9 PID &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Clean the  &lt;B&gt;.log&lt;/B&gt; and .&lt;B&gt;out&lt;/B&gt; logs in &lt;B&gt;/var/log/zookeeper&lt;/B&gt; &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# truncate --size 0 zookeeper.log
# truncate --size 0 zookeeper-zookeeper-server-FQDN.out&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Restart through Ambari UI&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check for any errors in the above logs&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 02:13:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201723#M163730</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-22T02:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201724#M163731</link>
      <description>&lt;P&gt;One thing I noticed, in the zookeeper log folder, the name of the .out file is NOT the full FQDN, just the machine name:&lt;/P&gt;&lt;P&gt;hdp machine-&lt;/P&gt;&lt;PRE&gt;-rw-r--r--.  1 zookeeper hadoop     3993 May 21 19:40 zookeeper.log
-rw-r--r--.  1 zookeeper hadoop 10485997 May 21 17:47 zookeeper.log.1 
-rw-r--r--.  1 zookeeper hadoop     3993 May 21 19:40 zookeeper-zookeeper-server-hdp.out&lt;/PRE&gt;&lt;P&gt;slave1&lt;/P&gt;&lt;PRE&gt;-rw-r--r--.  1 zookeeper hadoop        0 May 21 19:38 zookeeper.log
-rw-r--r--.  1 zookeeper hadoop 10486239 May 20 06:15 zookeeper.log.1
-rw-r--r--.  1 zookeeper hadoop        0 May 21 19:38 zookeeper-zookeeper-server-slave1.out&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2018 02:50:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201724#M163731</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-22T02:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201725#M163732</link>
      <description>&lt;P&gt;Also, looking at the log file after restarting ZK-&lt;/P&gt;&lt;PRE&gt;2018-05-21 19:44:50,301 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /35.231.170.209:42398
2018-05-21 19:44:50,301 - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not running
2018-05-21 19:44:50,301 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /35.231.170.209:42398 (no session established for client)
2018-05-21 19:44:53,030 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /35.231.170.209:42408
2018-05-21 19:44:53,031 - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not running
2018-05-21 19:44:53,031 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /35.231.170.209:42408 (no session established for client)
2018-05-21 19:44:54,354 - WARN  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@383] - Cannot open channel to 3 at election address slave2.c.my-project-1519895027175.internal/35.231.220.224:3888
java.net.SocketTimeoutException: connect timed out&lt;/PRE&gt;&lt;P&gt;Again, Ambari still shows ZK to be running.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 02:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201725#M163732</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-22T02:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201726#M163733</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/192218/@Mike%20Wong"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;These 2 commands should give you the correct format of the hostnames. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hostname -f &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ cat /etc/hosts&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Can you correct the names and restart the zookeepers  Have you checked in the &lt;STRONG&gt;Ambari UI ---&amp;gt;Zookeeper---&amp;gt;Config parameter--&amp;gt; Zookeeper Server ---&amp;gt;Zookeeper Server host(s)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do the name correspond ?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 03:41:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201726#M163733</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-22T03:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201727#M163734</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/80213/mikewwong.html" nodeid="80213"&gt;@Mike Wong&lt;/A&gt;&lt;P&gt;1. Is it a new or an existing cluster ? How many total nodes you have in cluster ?&lt;/P&gt;&lt;P&gt; 2. Plz provide us output of following command from all zookeeper server nodes&lt;/P&gt;&lt;P&gt;echo 'stat' | nc &amp;lt;ZK_HOST&amp;gt; 2181&lt;/P&gt;&lt;P&gt;Keeperexceptions could many times  be due to large number of znode counts in zookeeper for various services. Also check zoo.cfg of all ZK nodes and verify if this file is identical across all nodes and hostnames for zk nodes referred are identical as well.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 05:31:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201727#M163734</guid>
      <dc:creator>gsharma</dc:creator>
      <dc:date>2018-05-22T05:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201728#M163735</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271" target="_blank"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;They do match&lt;/P&gt;&lt;P&gt;From Ambari-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74508-screen-shot-2018-05-21-at-75305-pm.png" style="width: 1146px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17414i3326489B5DC7A638/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74508-screen-shot-2018-05-21-at-75305-pm.png" alt="74508-screen-shot-2018-05-21-at-75305-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From the VMs-&lt;/P&gt;&lt;PRE&gt;[mike_w_wong@hdp ~]$ hostname -f
hdp.c.my-project-1519895027175.internal&lt;/PRE&gt;&lt;PRE&gt;[mike_w_wong@slave1 ~]$ hostname -f
slave1.c.my-project-1519895027175.internal&lt;/PRE&gt;&lt;PRE&gt;[mike_w_wong@slave2 ~]$ hostname -f
slave2.c.my-project-1519895027175.internal&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:28:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201728#M163735</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2019-08-18T05:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201729#M163736</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3120/gsharma.html" nodeid="3120"&gt;@Gaurav Sharma&lt;/A&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It is a new cluster.  Four total nodes&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;[mike_w_wong@hdp ~]$ sudo echo 'stat'| nc hdp.c.my-project-1519895027175.internal 2181
This ZooKeeper instance is not currently serving requests&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;[mike_w_wong@slave1 ~]$ sudo echo 'stat'| nc slave1.c.my-project-1519895027175.internal 2181
This ZooKeeper instance is not currently serving requests&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;[mike_w_wong@slave2 ~]$ sudo echo 'stat'| nc slave2.c.my-project-1519895027175.internal 2181
This ZooKeeper instance is not currently serving requests&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Checking the zoo.cfg now&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 07:07:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201729#M163736</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-22T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201730#M163737</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3120/gsharma.html" nodeid="3120"&gt;@Gaurav Sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I think I figured it out.  When you asked me to check zoo.cfg, I noticed there were a block of ports ZK communicates over&lt;/P&gt;&lt;PRE&gt;server.1=hdp.c.my-project-1519895027175.internal:2888:3888
server.2=slave1.c.my-project-1519895027175.internal:2888:3888
server.3=slave2.c.my-project-1519895027175.internal:2888:3888&lt;/PRE&gt;&lt;P&gt;In GCP, you have to configure the firewall manually (or that's what I'm doing at least).  Once I added that range of ports to the firewall, I restarted the ZK servers and most of my services work now!&lt;/P&gt;&lt;P&gt;I say most, because Spark2 History Server and Zeppelin still aren't working.  But I'll open another thread for those.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 10:03:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-not-running/m-p/201730#M163737</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-22T10:03:09Z</dc:date>
    </item>
  </channel>
</rss>

