<?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: Cannot connect to ResoureManager in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167608#M25074</link>
    <description>&lt;P&gt;Here's how I resolved the issue:&lt;A rel="user" href="https://community.cloudera.com/users/133/ledel.html" nodeid="133"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;RM log was showing some issue related to ZK&lt;/P&gt;&lt;P&gt;:2016-04-18 05:20:57,275 INFO  recovery.ZKRMStateStore (ZKRMStateStore.java:runWithRetries(1214)) - Retrying operation on ZK. Retry no. 195
2016-04-18 05:20:57,454 INFO  zookeeper.ClientCnxn (ClientCnxn.java:logStartConnect(1019)) - Opening socket connection to server ZK_HOST/10.131.$
2016-04-18 05:20:57,455 WARN  zookeeper.ClientCnxn (ClientCnxn.java:run(1146)) - Session 0x0 for server null, unexpected error, closing socket connection and attemptin$
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1125)&lt;/P&gt;&lt;P&gt;Also noticed ZK kept getting stopped. ZK logs: java.io.FileNotFoundException: /hadoop/zookeeper/version-2/log. (Permission denied)&lt;/P&gt;&lt;P&gt;So did chmod a+rwx -R /hadoop/zookeeper andd then restarted ZK and RM services.&lt;/P&gt;&lt;P&gt;After that was able to successfully start Hive CLI.&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.hortonworks.com/questions/27321/cannot-connect-to-resouremanager.html#"&gt;@Kuldeep Kulkarni&lt;/A&gt; &lt;A href="https://community.hortonworks.com/questions/27321/cannot-connect-to-resouremanager.html#"&gt;@Laurent Edel&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 17:54:40 GMT</pubDate>
    <dc:creator>amittewari_5</dc:creator>
    <dc:date>2016-04-18T17:54:40Z</dc:date>
    <item>
      <title>Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167601#M25067</link>
      <description>&lt;P&gt;Since HiveUI is not working through Ambari, on troubleshooting through "hive -hiveconf
hive.root.logger=DEBUG,console", &lt;/P&gt;&lt;P&gt;16/04/13 06:44:37 [IPC
Client (1720891078) connection to RM_FQDN /RM_IP:8020 from root]: DEBUG
ipc.Client: IPC Client (1720891078) connection to RM_FQDN/RM_IP:8020 from root
got value #32&lt;/P&gt;&lt;P&gt;16/04/13 06:44:37
[main]: DEBUG ipc.ProtobufRpcEngine: Call: getFileInfo took 1ms&lt;/P&gt;&lt;P&gt;16/04/13 06:44:37
[main]: DEBUG ipc.Client: The ping interval is 60000 ms.&lt;/P&gt;&lt;P&gt;16/04/13 06:44:37
[main]: DEBUG ipc.Client: Connecting to RM_FQDN/RM_IP:8050&lt;/P&gt;&lt;P&gt;16/04/13 06:44:38
[main]: INFO ipc.Client: Retrying connect to server: RM_FQDN/RM_IP:8050. Already tried 0 time(s); retry
policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000
MILLISECONDS)&lt;/P&gt;&lt;P&gt;16/04/13 06:44:39
[main]: INFO ipc.Client: Retrying connect to server: RM_FQDN/RM_IP:8050. Already tried 1 time(s); retry
policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1000
MILLISECONDS)&lt;/P&gt;&lt;P&gt;Also ResourceManager UI giving "ERR_CONNECTION_REFUSED"&lt;/P&gt;&lt;P&gt;Seems even when RM is already started through Ambari, it cannot be accessed/connected through client or UI.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 17:53:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167601#M25067</guid>
      <dc:creator>amittewari_5</dc:creator>
      <dc:date>2016-04-13T17:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167602#M25068</link>
      <description>&lt;P&gt;can you please check the RM logs for any possible errors? &lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 18:07:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167602#M25068</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-04-13T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167603#M25069</link>
      <description>&lt;P&gt;ResourceManager should not be on port 8020, default is 8088. 8020 is used by NameNode.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 18:15:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167603#M25069</guid>
      <dc:creator>ledel</dc:creator>
      <dc:date>2016-04-13T18:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167604#M25070</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3441/amittewari5.html" nodeid="3441"&gt;@Amit Tewari&lt;/A&gt;&lt;P&gt;1. Can you please check if resource manager is listening on 8050&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;[root@sandbox coord]# netstat -tulpn|grep 8050
tcp        0      0 0.0.0.0:8050                0.0.0.0:*                   LISTEN      8102/jav&lt;/PRE&gt;&lt;P&gt;2. If yes, can you please check if is reachable from hive client ? you can try simple ping command first and if ping is working then try to do telnet from hive client &lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;[root@sandbox coord]# telnet sandbox.hortonworks.com 8050
Trying 10.0.2.15...
Connected to sandbox.hortonworks.com.
Escape character is '^]'.&lt;/PRE&gt;&lt;P&gt;3. If you still get connection refused then try telnet from some other node in the cluster, if it works then your hive client has some connectivity issues with RM&lt;/P&gt;&lt;P&gt;4. If it doesn't work from any of the host then RM has some issues, you might need to check RM logs or RM host if any firewall is blocking packets to 8050.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 01:31:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167604#M25070</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-14T01:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167605#M25071</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3441/amittewari5.html" nodeid="3441"&gt;@Amit Tewari&lt;/A&gt; - Please check my answer below and accept if this resolves your issue&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 02:23:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167605#M25071</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-16T02:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167606#M25072</link>
      <description>&lt;DIV&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; Couldnt connect using telnet&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:20:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167606#M25072</guid>
      <dc:creator>amittewari_5</dc:creator>
      <dc:date>2016-04-18T16:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167607#M25073</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3441/amittewari5.html" nodeid="3441"&gt;@Amit Tewari&lt;/A&gt;&lt;P&gt;Is netstat working? please paste output of netstat command here&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:25:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167607#M25073</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-18T16:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to ResoureManager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167608#M25074</link>
      <description>&lt;P&gt;Here's how I resolved the issue:&lt;A rel="user" href="https://community.cloudera.com/users/133/ledel.html" nodeid="133"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;RM log was showing some issue related to ZK&lt;/P&gt;&lt;P&gt;:2016-04-18 05:20:57,275 INFO  recovery.ZKRMStateStore (ZKRMStateStore.java:runWithRetries(1214)) - Retrying operation on ZK. Retry no. 195
2016-04-18 05:20:57,454 INFO  zookeeper.ClientCnxn (ClientCnxn.java:logStartConnect(1019)) - Opening socket connection to server ZK_HOST/10.131.$
2016-04-18 05:20:57,455 WARN  zookeeper.ClientCnxn (ClientCnxn.java:run(1146)) - Session 0x0 for server null, unexpected error, closing socket connection and attemptin$
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1125)&lt;/P&gt;&lt;P&gt;Also noticed ZK kept getting stopped. ZK logs: java.io.FileNotFoundException: /hadoop/zookeeper/version-2/log. (Permission denied)&lt;/P&gt;&lt;P&gt;So did chmod a+rwx -R /hadoop/zookeeper andd then restarted ZK and RM services.&lt;/P&gt;&lt;P&gt;After that was able to successfully start Hive CLI.&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.hortonworks.com/questions/27321/cannot-connect-to-resouremanager.html#"&gt;@Kuldeep Kulkarni&lt;/A&gt; &lt;A href="https://community.hortonworks.com/questions/27321/cannot-connect-to-resouremanager.html#"&gt;@Laurent Edel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:54:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-connect-to-ResoureManager/m-p/167608#M25074</guid>
      <dc:creator>amittewari_5</dc:creator>
      <dc:date>2016-04-18T17:54:40Z</dc:date>
    </item>
  </channel>
</rss>

