<?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 CHECK FAILED in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ZOOKEEPER-CHECK-FAILED/m-p/242435#M204236</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/113056/adilbakkourigi.html"&gt;@Adil BAKKOURI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ambari Simply makes use of the Zookeeper Smoke Test "zkSmoke.sh" script to verify the Zookeeper Connection and if it can create &amp;amp; delete the dummy ZNode "/zk_smoketest" inside the zookeeper host or not?&lt;/P&gt;&lt;P&gt;As you see the following message:&lt;/P&gt;&lt;PRE&gt;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 4. zk_node1=master.rh.bigdata.cluster&amp;nbsp;
.
.
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zk_smoketest &amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Which means your Zookeeper process might not be running file. Most probably the Zookeeper port might not be accessible on host &lt;STRONG&gt;"master.rh.bigdata.cluster"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So you will need to first check if your Zookeeper is running fine or not on host "master.rh.bigdata.cluster" and if the Zookeeper port 2181 is listening fine or not?&lt;/P&gt;&lt;PRE&gt;# ps -ef | grep -i zookeeper
# netstat -tnlpa | grep 2181
# service iptables stop&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Most Possible Cause: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you see that Zookeeper process is not running then please try to restart it and check the Zookeper Logs to find any issue/ startup failure and please share the log.&lt;/P&gt;&lt;P&gt;Most probably once your Zookeeper is running fine and the port 2181 is accessible then your Zookeeper Check Should also run fine.&lt;/P&gt;&lt;P&gt;Firewall or Port Blocking issue:&lt;/P&gt;&lt;P&gt;So please go to the host where the SmokeTest is failing and then try to telnet to Zookeeper Host &amp;amp; Port to see if that is accessible?&lt;/P&gt;&lt;PRE&gt;# telnet  &lt;STRONG&gt;master.rh.bigdata.cluster &amp;nbsp;2181&lt;/STRONG&gt;
&lt;STRONG&gt;(OR)&lt;/STRONG&gt;
&lt;STRONG&gt;# nc -v &lt;STRONG&gt;master.rh.bigdata.cluster &amp;nbsp;2181&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Manual Test:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You your self can try running the same command to verify this Zookeeper Zmoke Test run Try running this command on different Zookeeper nodes as it is.&lt;/P&gt;&lt;PRE&gt;# /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&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 04:36:33 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-06-14T04:36:33Z</dc:date>
  </channel>
</rss>

