<?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: Not able to connect Zookeeper server from Client... in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230458#M74882</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/68248/pratti4u.html"&gt;Ravikanth Pratti&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The below error is typical of firewall issue.Make sure firewall is not blocking your access iptables is default firewall on Linux. Run following command to see what iptables rules are setup: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# /sbin/iptables -L -n &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Firewall error&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;0:0:0:2181:QuorumCnxManager@588] - Cannot open channel to 3 at election address jn3/15.34.71.187:3888 java.net.NoRouteToHostException: No route to host (Host unreachable) &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;You can temporary clear all iptables rules so that you can troubleshoot problem. If you are using Red Hat or Fedora Linux type command: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# /etc/init.d/iptables save 
# /etc/init.d/iptables &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;stop If you are using other Linux distribution type following commands: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# iptables -F 
# iptables -X 
# iptables -t nat -F 
# iptables -t nat -X 
# iptables -t mangle -F 
# iptables -t mangle -X&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 22:10:55 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-02-28T22:10:55Z</dc:date>
    <item>
      <title>Not able to connect Zookeeper server from Client...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230456#M74880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Am trying to  learn Hadoop by self learning.&lt;/P&gt;&lt;P&gt;I've created 8 instance by using VMWare Workstation.&lt;/P&gt;&lt;P&gt;2 - name nodes (i.e.  nn1,nn2) ,3 data nodes(dn1,dn2,dn3),3 journal nodes(jn1,jn2,jn3).&lt;/P&gt;&lt;P&gt;During start of each node,  expect Name Nodes, rest all started successfully.&lt;/P&gt;&lt;P&gt;Name node is getting shutdown because below reasons as per my understanding.&lt;/P&gt;&lt;P&gt;1)   Issue in  &lt;STRONG&gt;hadoop-root-zkfc-nn1.log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;2018-02-23 06:41:28,449 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString=jn1:2181,jn2:2181,jn3:2181 sessionTimeout=5000 watcher=org.apache.hadoop.ha.ActiveStandbyElector$WatcherWithClientRef@16d04d3d&lt;/P&gt;&lt;P&gt;2018-02-23 06:41:28,706 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server 15.34.71.241/15.34.71.241:2181. Will not attempt to authenticate using SASL (unknown error)&lt;/P&gt;&lt;P&gt;2018-02-23 06:41:28,713 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect&lt;/P&gt;&lt;P&gt;java.net.NoRouteToHostException: No route to host&lt;/P&gt;&lt;P&gt;	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)&lt;/P&gt;&lt;P&gt;	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)&lt;/P&gt;&lt;P&gt;2018-02-23 06:41:28,889 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server 15.34.71.84/15.34.71.84:2181. Will not attempt to authenticate using SASL (unknown error)&lt;/P&gt;&lt;P&gt;2018-02-23 06:41:28,891 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect&lt;/P&gt;&lt;P&gt;2)  Issue in &lt;STRONG&gt;hadoop-root-namenode-nn1.log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;2018-02-22 11:47:57,913 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.&lt;/P&gt;&lt;P&gt;org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /opt/software/hdfsdrive/name is in an inconsistent state: storage directory does not exist or is not accessible.&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:374)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:225)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:978)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:685)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:585)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:645)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:819)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:803)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1500)&lt;/P&gt;&lt;P&gt;	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1566)&lt;/P&gt;&lt;P&gt;2018-02-22 11:47:57,915 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1&lt;/P&gt;&lt;P&gt;2018-02-22 11:47:57,948 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: &lt;/P&gt;&lt;P&gt;It seems to Because of issue 1, issue 2 also observed.&lt;/P&gt;&lt;P&gt;I could able to login  from each device to another device by ssh.&lt;/P&gt;&lt;P&gt;verified hostname in each device which is correct.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;zoo.cfg also configured properly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;dataDir=/opt/software/zookeeper/data&lt;/P&gt;&lt;P&gt;dataLogDir=/opt/software/zookeeper/logs&lt;/P&gt;&lt;P&gt;server.1=jn1:2888:3888&lt;/P&gt;&lt;P&gt;server.2=jn2:2889:3889&lt;/P&gt;&lt;P&gt;server.3=jn3:2890:3890&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;status of zookeeper in jn1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@jn1 ~]# jps&lt;BR /&gt;1376 QuorumPeerMain&lt;BR /&gt;1449 JournalNode&lt;BR /&gt;1530 DataNode&lt;BR /&gt;1626 NodeManager&lt;BR /&gt;1820 Jps&lt;/P&gt;&lt;P&gt;Can any one help to resolve this issue.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 00:34:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230456#M74880</guid>
      <dc:creator>pratti4u</dc:creator>
      <dc:date>2018-02-24T00:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect Zookeeper server from Client...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230457#M74881</link>
      <description>&lt;P&gt;Some update on this issue........&lt;/P&gt;&lt;P&gt;It Seems to Zookeeper server is not running properly.&lt;/P&gt;&lt;P&gt;While checking server status in zookeeper, following error message is displayed&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@jn2 bin]# ./zkServer.sh status&lt;BR /&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/software/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;Error contacting service. It is probably not running.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ZooKeeper Logs ::&lt;/P&gt;&lt;P&gt;2018-02-28 06:46:11,718 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumPeer$QuorumServer@167] - Resolved hostname: jn3 to address: jn3/15.34.71.187&lt;/P&gt;&lt;P&gt;2018-02-28 06:46:11,718 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@852] - Notification time out: 60000&lt;/P&gt;&lt;P&gt;2018-02-28 06:47:11,723 [myid:1] - WARN  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@588] - Cannot open channel to 2 at election address jn2/15.34.71.84:3888&lt;/P&gt;&lt;P&gt;java.net.NoRouteToHostException: No route to host (Host unreachable)&lt;/P&gt;&lt;P&gt;	at java.net.PlainSocketImpl.socketConnect(Native Method)&lt;/P&gt;&lt;P&gt;	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)&lt;/P&gt;&lt;P&gt;	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)&lt;/P&gt;&lt;P&gt;	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)&lt;/P&gt;&lt;P&gt;	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)&lt;/P&gt;&lt;P&gt;	at java.net.Socket.connect(Socket.java:589)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:562)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:614)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:843)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:913)&lt;/P&gt;&lt;P&gt;2018-02-28 06:47:11,723 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumPeer$QuorumServer@167] - Resolved hostname: jn2 to address: jn2/15.34.71.84&lt;/P&gt;&lt;P&gt;2018-02-28 06:47:11,724 [myid:1] - WARN  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@588] - Cannot open channel to 3 at election address jn3/15.34.71.187:3888&lt;/P&gt;&lt;P&gt;java.net.NoRouteToHostException: No route to host (Host unreachable)&lt;/P&gt;&lt;P&gt;	at java.net.PlainSocketImpl.socketConnect(Native Method)&lt;/P&gt;&lt;P&gt;	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)&lt;/P&gt;&lt;P&gt;	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)&lt;/P&gt;&lt;P&gt;	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)&lt;/P&gt;&lt;P&gt;	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)&lt;/P&gt;&lt;P&gt;	at java.net.Socket.connect(Socket.java:589)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:562)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:614)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:843)&lt;/P&gt;&lt;P&gt;	at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:913)&lt;/P&gt;&lt;P&gt;2018-02-28 06:47:11,725 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumPeer$QuorumServer@167] - Resolved hostname: jn3 to address: jn3/15.34.71.187&lt;/P&gt;&lt;P&gt;2018-02-28 06:47:11,725 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@852] - Notification time out: 60000&lt;/P&gt;&lt;P&gt;#################################################################&lt;/P&gt;&lt;P&gt;but in jps, I can observe proper daemon services are running.&lt;BR /&gt;2176 QuorumPeerMain&lt;BR /&gt;2257 JournalNode&lt;BR /&gt;2458 NodeManager&lt;BR /&gt;2349 DataNode&lt;BR /&gt;2606 Jps&lt;/P&gt;&lt;P&gt;Not sure which configuration issue causes this. Looking forward to get some inputs from this community.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:57:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230457#M74881</guid>
      <dc:creator>pratti4u</dc:creator>
      <dc:date>2018-02-28T19:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect Zookeeper server from Client...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230458#M74882</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/68248/pratti4u.html"&gt;Ravikanth Pratti&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The below error is typical of firewall issue.Make sure firewall is not blocking your access iptables is default firewall on Linux. Run following command to see what iptables rules are setup: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# /sbin/iptables -L -n &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Firewall error&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;0:0:0:2181:QuorumCnxManager@588] - Cannot open channel to 3 at election address jn3/15.34.71.187:3888 java.net.NoRouteToHostException: No route to host (Host unreachable) &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;You can temporary clear all iptables rules so that you can troubleshoot problem. If you are using Red Hat or Fedora Linux type command: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# /etc/init.d/iptables save 
# /etc/init.d/iptables &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;stop If you are using other Linux distribution type following commands: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# iptables -F 
# iptables -X 
# iptables -t nat -F 
# iptables -t nat -X 
# iptables -t mangle -F 
# iptables -t mangle -X&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 22:10:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230458#M74882</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-02-28T22:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect Zookeeper server from Client...</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230459#M74883</link>
      <description>&lt;P&gt;@&lt;STRONG&gt;Geoffrey Shelton Okot&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you for comments.&lt;/P&gt;&lt;P&gt;It worked after iptables rules clear.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:16:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-connect-Zookeeper-server-from-Client/m-p/230459#M74883</guid>
      <dc:creator>pratti4u</dc:creator>
      <dc:date>2018-03-01T16:16:37Z</dc:date>
    </item>
  </channel>
</rss>

