<?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: Connection failed: [Errno 111] Connection refused... in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200273#M162298</link>
    <description>&lt;P&gt;&lt;EM&gt; &lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you past the whole /etc/hosts entry?  I am interested in the first 4 lines !&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You should have some lines like &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please confirm &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 19 May 2018 00:31:14 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-05-19T00:31:14Z</dc:date>
    <item>
      <title>Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200262#M162287</link>
      <description>&lt;P&gt;So, I'm attempting a 'start from scratch' install of HDP2.6.4 on GCP.  After 3+ days, I was finally able to get GCP into a state where I was able to get the code installed on my instances. &lt;/P&gt;&lt;P&gt;Then the  moment of truth as I logged into Ambari...it was a sea of RED, lit up like Christmas tree!  30+ alerts and the only services running were HDFS, Zookeeper, and Flume&lt;/P&gt;&lt;P&gt;Digging into the Resource Manager, there seems to be a bit of a recurring theme:&lt;/P&gt;&lt;P&gt;Connection failed: [ERRNO 111] Connection refused to &amp;lt;machine_name&amp;gt;:&amp;lt;port&amp;gt;&lt;/P&gt;&lt;P&gt;At first, I thought it was simply because I hadn't opened up those ports in the GCP firewall, so I added them.  But I'm still encountering the errors. &lt;/P&gt;&lt;P&gt;Any ideas where I've gone wrong?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74482-screen-shot-2018-05-17-at-92119-pm.png" style="width: 2368px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17549iE8237BA616F78F1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74482-screen-shot-2018-05-17-at-92119-pm.png" alt="74482-screen-shot-2018-05-17-at-92119-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74481-screen-shot-2018-05-17-at-92047-pm.png" style="width: 402px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17550i3D3C535AA538BC96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74481-screen-shot-2018-05-17-at-92047-pm.png" alt="74481-screen-shot-2018-05-17-at-92047-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:44:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200262#M162287</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2019-08-18T05:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200263#M162288</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;Yes, your major source of the problem seems to be connectivity. Again just to validate can you walk through the steps you executed or documentation you used. Members tend to ignore basic steps that are vital.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Could you also share or dig into the logs for most of the components in  &lt;STRONG&gt;/var/log/{component}/*.log &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 13:15:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200263#M162288</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-18T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200264#M162289</link>
      <description>&lt;P&gt;@Geoffrey Shelton Okot&lt;/P&gt;&lt;P&gt;Here's the documentation I used to prepare and install my cluster: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.0/bk_ambari-installation/content/ch_Getting_Ready.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.0/bk_ambari-installation/content/ch_Getting_Ready.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 13:56:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200264#M162289</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-18T13:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200265#M162290</link>
      <description>&lt;P&gt;Here are some of the errors for the respective components:&lt;/P&gt;&lt;P&gt;Oozie-&lt;/P&gt;&lt;PRE&gt;Stack trace for the error was (for debug purposes):
--------------------------------------
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user/oozie/share/lib/lib_20180518045451/oozie/jackson-databind-2.4.4.jar could only be replicated to 0 nodes instead of minReplication (=1).  There are 2 datanode(s) running and 2 node(s) are excluded in this operation.&lt;/PRE&gt;&lt;P&gt;HiveServer2-&lt;/P&gt;&lt;PRE&gt;raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/usr/hdp/2.6.4.0-91/hive/hive.tar.gz -H 'Content-Type: application/octet-stream' 'http://hdp.c.my-project-1519895027175.internal:50070/webhdfs/v1/hdp/apps/2.6.4.0-91/hive/hive.tar.gz?op=CREATE&amp;amp;user.name=hdfs&amp;amp;overwrite=True&amp;amp;permission=444'' returned status_code=403. 
{
  "RemoteException": {
    "exception": "IOException", 
    "javaClassName": "java.io.IOException", 
    "message": "File /hdp/apps/2.6.4.0-91/hive/hive.tar.gz could only be replicated to 0 nodes instead of minReplication (=1).  There are 2 datanode(s) running and 2 node(s) are excluded in this operation.\n\tat &lt;/PRE&gt;&lt;P&gt;Spark2 History Server-&lt;/P&gt;&lt;PRE&gt;raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/tmp/spark2/spark2-hdp-yarn-archive.tar.gz -H 'Content-Type: application/octet-stream' 'http://hdp.c.my-project-1519895027175.internal:50070/webhdfs/v1/hdp/apps/2.6.4.0-91/spark2/spark2-hdp-yarn-archive.tar.gz?op=CREATE&amp;amp;user.name=hdfs&amp;amp;overwrite=True&amp;amp;permission=444'' returned status_code=403. 
{
  "RemoteException": {
    "exception": "IOException", 
    "javaClassName": "java.io.IOException", 
    "message": "File /hdp/apps/2.6.4.0-91/spark2/spark2-hdp-yarn-archive.tar.gz could only be replicated to 0 nodes instead of minReplication (=1).  There are 3 datanode(s) running and 3 node(s) are excluded in this operation.\n\tat &lt;/PRE&gt;&lt;P&gt;Zeppelin Notebook-&lt;/P&gt;&lt;PRE&gt;raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/usr/hdp/current/zeppelin-server/interpreter/spark/dep/zeppelin-spark-dependencies_2.11-0.7.3.2.6.4.0-91.jar -H 'Content-Type: application/octet-stream' 'http://hdp.c.my-project-1519895027175.internal:50070/webhdfs/v1/apps/zeppelin/zeppelin-spark-dependencies_2.11-0.7.3.2.6.4.0-91.jar?op=CREATE&amp;amp;user.name=hdfs&amp;amp;overwrite=True&amp;amp;permission=444'' returned status_code=403. 
{
  "RemoteException": {
    "exception": "IOException", 
    "javaClassName": "java.io.IOException", 
    "message": "File /apps/zeppelin/zeppelin-spark-dependencies_2.11-0.7.3.2.6.4.0-91.jar could only be replicated to 0 nodes instead of minReplication (=1).  There are 3 datanode(s) running and 3 node(s) are excluded in this operation.\n\tat &lt;/PRE&gt;</description>
      <pubDate>Fri, 18 May 2018 14:07:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200265#M162290</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-18T14:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200266#M162291</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/80213/mikewwong.html" nodeid="80213"&gt;@Mike Wong&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please check your &lt;EM&gt;/etc/hosts&lt;/EM&gt; on all nodes. And also if &lt;EM&gt;selinux &lt;/EM&gt;is disabled using &lt;EM&gt;getenforce &lt;/EM&gt;command. &lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 14:12:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200266#M162291</guid>
      <dc:creator>sparsh_singhal</dc:creator>
      <dc:date>2018-05-18T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200267#M162292</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;&lt;EM&gt;@Mike Wong&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you describe your cluster OS &amp;amp; node number?  Is passwordless connect working?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your "data nodes have failed and are not registered with the name node", this is network problem. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is your DNS working can you validate?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your hostname in /etc/hosts shouldn't be mixed cases!!! Lowercase and FQDN&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 14:41:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200267#M162292</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-18T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200268#M162293</link>
      <description>&lt;P&gt;@Sparsh, these four lines are present in the /etc/hosts file on all four of my nodes-&lt;/P&gt;&lt;PRE&gt;35.231.154.250 hdp.c.my-project-1519895027175.internal # Added by Mike Wong
35.231.170.209 slave1.c.my-project-1519895027175.internal #Added by Mike Wong
35.231.220.224 slave2.c.my-project-1519895027175.internal #Added by Mike Wong
35.229.111.57 slave3.c.my-project-1519895027175.internal #Added by Mike Wong&lt;/PRE&gt;&lt;P&gt;getenforce resulted in Enforcing on three of my nodes.  I've since disabled selinux using 'setenforce 0'. Now all four node are Permissive&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 15:23:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200268#M162293</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-18T15:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200269#M162294</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;Cluster OS = RHEL7 VMs on GCP, four nodes total.  Yes, SSH is working&lt;/P&gt;&lt;P&gt;I can ping from each node to the other three nodes via IP address and FQDN successfully&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 15:25:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200269#M162294</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-18T15:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200270#M162295</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/80213/mikewwong.html" nodeid="80213"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/80213/mikewwong.html" nodeid="80213"&gt;@Mike Wong&lt;/A&gt; &lt;P style="display: inline !important;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/80213/mikewwong.html" nodeid="80213"&gt; &lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P style="display: inline !important;"&gt;I'd recommend disabling &lt;EM&gt;selinux &lt;/EM&gt;and &lt;EM&gt;rebooting &lt;/EM&gt;the machines. &lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;After that look into &lt;EM&gt;hdfs logs&lt;/EM&gt; make sure hdfs is up with no alerts. Try restarting hdfs. All other services would come up then. &lt;/DIV&gt;</description>
      <pubDate>Fri, 18 May 2018 15:42:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200270#M162295</guid>
      <dc:creator>sparsh_singhal</dc:creator>
      <dc:date>2018-05-18T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200271#M162296</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;&lt;EM&gt;@Mike Wong&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ping is not enough. I recommend checking the below settings on all the nodes in the cluster&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Disable and stop firewalld&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;systemctl disable firewalld
systemctl stop firewalld&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Status of Firewalld&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;systemctl status firewalld&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Check DNS&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This should have the correct GW&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# route -n&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Disable SELinux&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;sed -ie 's/enforcing/disabled/g' /etc/selinux/config&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then retry &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 21:21:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200271#M162296</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-18T21:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200272#M162297</link>
      <description>&lt;P&gt;All of this look ok&lt;/P&gt;&lt;P&gt;Firewalld status-&lt;/P&gt;&lt;PRE&gt;● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

May 15 15:09:17 localhost systemd[1]: Starting firewalld - dynamic firewall daemon...
May 15 15:09:19 localhost systemd[1]: Started firewalld - dynamic firewall daemon.
May 15 21:03:24 slave3 systemd[1]: Stopping firewalld - dynamic firewall daemon...
May 15 21:03:25 slave3 systemd[1]: Stopped firewalld - dynamic firewall daemon.&lt;/PRE&gt;&lt;P&gt;route -n&lt;/P&gt;&lt;PRE&gt;Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.142.0.1      0.0.0.0         UG    100    0        0 eth0
10.142.0.1      0.0.0.0         255.255.255.255 UH    100    0        0 eth0
10.142.0.5      0.0.0.0         255.255.255.255 UH    100    0        0 eth0&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 May 2018 22:36:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200272#M162297</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-18T22:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200273#M162298</link>
      <description>&lt;P&gt;&lt;EM&gt; &lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you past the whole /etc/hosts entry?  I am interested in the first 4 lines !&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You should have some lines like &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please confirm &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 00:31:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200273#M162298</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-19T00:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200274#M162299</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;Whole /etc/hosts file-&lt;/P&gt;&lt;PRE&gt;127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.142.0.2 hdp.c.my-project-1519895027175.internal hdp  # Added by Google
169.254.169.254 metadata.google.internal  # Added by Google
35.231.154.250 hdp.c.my-project-1519895027175.internal # Added by Mike Wong
35.231.170.209 slave1.c.my-project-1519895027175.internal #Added by Mike Wong
35.231.220.224 slave2.c.my-project-1519895027175.internal #Added by Mike Wong
35.229.111.57 slave3.c.my-project-1519895027175.internal #Added by Mike Wong&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 May 2018 02:37:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200274#M162299</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-19T02:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200275#M162300</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;The entries look correct &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Can you try to start YARN manually?&lt;/I&gt;&lt;/P&gt;&lt;PRE&gt;su -l yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh start resourcemanager"&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 May 2018 02:57:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200275#M162300</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-19T02:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200276#M162301</link>
      <description>&lt;P&gt;Hmmm, when I try to start RM, I'm getting this-&lt;/P&gt;&lt;PRE&gt;2018-05-18 20:26:11,400 INFO  recovery.ZKRMStateStore (ZKRMStateStore.java:runWithRetries(1227)) - Exception while executing a ZK operation.
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /rmstore
        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.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore$1.run(ZKRMStateStore.java:326)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore$1.run(ZKRMStateStore.java:322)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore$ZKAction.runWithCheck(ZKRMStateStore.java:1174)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore$ZKAction.runWithRetries(ZKRMStateStore.java:1207)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.createRootDir(ZKRMStateStore.java:336)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.createRootDirRecursively(ZKRMStateStore.java:1311)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.startInternal(ZKRMStateStore.java:303)
        at org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.serviceStart(RMStateStore.java:598)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceStart(ResourceManager.java:593)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startActiveServices(ResourceManager.java:1008)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$1.run(ResourceManager.java:1049)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$1.run(ResourceManager.java:1045)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1869)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.transitionToActive(ResourceManager.java:1045)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1085)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1229)
2018-05-18 20:26:11,400 INFO  recovery.ZKRMStateStore (ZKRMStateStore.java:runWithRetries(1230)) - Retrying operation on ZK. Retry no. 203
2018-05-18 20:26:11,471 INFO  zookeeper.ClientCnxn (ClientCnxn.java:logStartConnect(1019)) - Opening socket connection to server slave1.c.my-project-1519895027175.internal/10.142.0.3:2181. Will not attempt to authenticate using SASL (unknown error)
2018-05-18 20:26:11,472 INFO  zookeeper.ClientCnxn (ClientCnxn.java:primeConnection(864)) - Socket connection established, initiating session, client: /10.142.0.3:52748, server: slave1.c.my-project-1519895027175.internal/10.142.0.3:2181 
2018-05-18 20:26:11,472 INFO  zookeeper.ClientCnxn (ClientCnxn.java:run(1142)) - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 May 2018 03:32:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200276#M162301</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-19T03:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200277#M162302</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I hope this is not production !&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; 1) Stop Resource Manager&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2) Connect with ZK server  in &lt;STRONG&gt;/usr/hdp/2.x.x/zookeeper  &lt;/STRONG&gt;the  below uout put is from cluster your output could look slightly different depending on installed components&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;./bin/zkCli.sh[zk: 
localhost:2181(CONNECTED) 0] ls /
[registry, cluster, brokers, storm, zookeeper, infra-solr, hbase-unsecure, admin, isr_change_notification, templeton-hadoop, hiveserver2, controller_epoch, druid, rmstore, ambari-metrics-cluster, consumers, config]
[zk: localhost:2181(CONNECTED) 1] ls /rmstore
[ZKRMStateRoot]
[zk: localhost:2181(CONNECTED) 2]&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;3) Remove the znode for RM -- rmr /rmstore&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[zk: localhost:2181(CONNECTED) 2] rmr /rmstore&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Restart YARN&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 03:45:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200277#M162302</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-19T03:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200278#M162303</link>
      <description>&lt;P&gt;1. I'm guessing my RM is already stopped&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74492-screen-shot-2018-05-18-at-70656-pm.png" style="width: 530px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17548i45EE2C9DB52DCF26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74492-screen-shot-2018-05-18-at-70656-pm.png" alt="74492-screen-shot-2018-05-18-at-70656-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. When I try to launch the Zookeeper Cli (./bin/zkCli.sh), I'm getting the following-&lt;/P&gt;&lt;PRE&gt;Connecting to localhost:2181
2018-05-18 23:18:06,066 - INFO  [main:Environment@100] - Client environment:zookeeper.version=3.4.6-91--1, built on 01/04/2018 10:34 GMT
2018-05-18 23:18:06,068 - INFO  [main:Environment@100] - Client environment:host.name=slave1.c.my-project-1519895027175.internal
2018-05-18 23:18:06,068 - INFO  [main:Environment@100] - Client environment:java.version=1.8.0_112
2018-05-18 23:18:06,070 - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2018-05-18 23:18:06,070 - INFO  [main:Environment@100] - Client environment:java.home=/usr/jdk64/jdk1.8.0_112/jre
2018-05-18 23:18:06,070 - INFO  [main:Environment@100] - Client environment:java.class.path=/usr/hdp/2.6.4.0-91/zookeeper/bin/.......
.
.
.

2018-05-18 23:18:06,094 - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
Welcome to ZooKeeper!
.
.
.

2018-05-18 23:18:10,760 - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1019] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
2018-05-18 23:18:10,761 - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@864] - Socket connection established, initiating session, client: /0:0:0:0:0:0:0:1:33932, server: localhost/0:0:0:0:0:0:0:1:2181
2018-05-18 23:18:10,761 - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1142] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:43:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200278#M162303</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2019-08-18T05:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200279#M162304</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/80213/mikewwong.html"&gt;@Mike Wong&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;YES the status shows stopped. Did you do the previous steps and restart the RM manually?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 13:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200279#M162304</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-19T13:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200280#M162305</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;I tried to connect to the Zookeeper server, but I'm getting the above error. (closing socket connection...)&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 10:17:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200280#M162305</guid>
      <dc:creator>mike_w_wong</dc:creator>
      <dc:date>2018-05-21T10:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connection failed: [Errno 111] Connection refused...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200281#M162306</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/80213/mikewwong.html" nodeid="80213"&gt;@Mike Wong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I had an issue similar when I enabled SSL on HDFS. Map Reduce and YARN. &lt;/P&gt;&lt;P&gt;Symptoms:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I could connect to HDFS rest interface from the command line internal to the cluster using curl&lt;/LI&gt;&lt;LI&gt;I could run the UI for HDFS from internal to the cluster using xwindows enabled putty an XMing&lt;/LI&gt;&lt;LI&gt;OpenSSL form internal returned 0 for the HDFS connection&lt;/LI&gt;&lt;LI&gt;No external connection to the could be made using curl/openssl/telnet to HDFS&lt;/LI&gt;&lt;LI&gt;The ResourceManager and JobHistory UI's both worked fine&lt;/LI&gt;&lt;LI&gt;We had a firewall but even when disabled the connection to HDFS failed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The issue was that we have 'internal network IP addresses (infiniband)' and externally accessible IP addresses. The HDFS when enabling https had bound to the internal address and wasn't listening on the external address - hence the connection refused.&lt;/P&gt;&lt;P&gt;The solution was to add the &lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;dfs.namenode.&lt;STRONG&gt;https&lt;/STRONG&gt;-bind-host=0.0.0.0 property to get the service to listen across all network interfaces.&lt;/P&gt;&lt;P&gt;Might be worth checking if you (or anybody else that gets a connection refused errors) that have multiple network interfaces, to which the port is binding to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;netstat -nlp | grep 50470&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;tcp　　　　　　　 0　　　　　 0 &amp;lt;internal IP address&amp;gt;:50470　　　　　　 　　0.0.0.0:*　　　　　　　　　　　　　　 LISTEN　　　　　 23521/java&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;netstat -nlp | grep 50070&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;tcp　　　　　　　 0　　　　　 0 0.0.0.0:50070　　　　　　　　　　 0.0.0.0:*　　　　　　　　　　　　　　 LISTEN　　　　　 23521/java&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 07:17:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-failed-Errno-111-Connection-refused/m-p/200281#M162306</guid>
      <dc:creator>andrew_ryan1</dc:creator>
      <dc:date>2018-10-29T07:17:16Z</dc:date>
    </item>
  </channel>
</rss>

