<?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: How to solve &amp;quot;Connection refused &amp;quot; errors in HDP in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120299#M17314</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt; you probably shut down the machine abruptly. SSH to the machine, issue shutdown now -r and hope everything comes back. If it doesn't, SSH again, issue "ambari-server start", login to web UI by going to 127.0.0.1:8080 user:admin pass:admin, start services manually. If still doesn't work, import a new sandbox and start from scratch.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2016 22:17:59 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-02-01T22:17:59Z</dc:date>
    <item>
      <title>How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120297#M17312</link>
      <description>&lt;P&gt;I have been working on Hortonworks Sandbox. The Sandbox is deployed on CentOS 6.7 server. I was, at some point in time, able to access the Web UIs on my browser from remote PC. But most of the services are not accessible except the welcome page on port 8888. When I try to start the services with command line in PuTTY, no success! That is, the services are not running. When  I run this command, netstat -nltu , I can't see the service ports in the list of listening ports. How can I make the ports listen for TCP connection. Any walk through on configuration of iptables and port forwarding would also be highly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:01:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120297#M17312</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2022-09-16T10:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120298#M17313</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Start ambari server &lt;/P&gt;&lt;P&gt;Use ambari to start services &lt;/P&gt;&lt;P&gt;Port 8080&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:17:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120298#M17313</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-01T22:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120299#M17314</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt; you probably shut down the machine abruptly. SSH to the machine, issue shutdown now -r and hope everything comes back. If it doesn't, SSH again, issue "ambari-server start", login to web UI by going to 127.0.0.1:8080 user:admin pass:admin, start services manually. If still doesn't work, import a new sandbox and start from scratch.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:17:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120299#M17314</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-01T22:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120300#M17315</link>
      <description>&lt;P&gt;Command&lt;/P&gt;&lt;P&gt;ambari-server start &lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:18:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120300#M17315</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-01T22:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120301#M17316</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1178/kibgeb.html"&gt;Kibrom Gebrehiwot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Grab Artem Ervits answer &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 05:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120301#M17316</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-02T05:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120302#M17317</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://community.hortonworks.com/users/393/aervits.html"&gt;@Artem Ervits&lt;/A&gt; for your prompt response! I am able to start the ambari server by issuing the command 'ambari-server start' now. But I can't still open Ambari on the browser from my Windows PC. &lt;A href="http://%3Cmy-remote-host-name/"&gt;http://&lt;/A&gt;&amp;lt;server-name&amp;gt;:8080 shows error: " ERR_CONNECTION_REFUSED". How can I add the HDP service ports to the list of listening ports? I think the issue could be related to port forwarding. How can I forward HDP service ports so that I can access the services from remote machine? &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6184iD66B9F877963382B/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="telnet-connection-refused.png" title="telnet-connection-refused.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6185i77DC59ED2ACCF5B7/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="list-of-listening-ports.png" title="list-of-listening-ports.png" /&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:16:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120302#M17317</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2016-02-02T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120303#M17318</link>
      <description>&lt;P&gt;Note: I am working on a network protected by firewall. My Local PC and the remote Sandbox Host are on the same LAN. I am remotely accessing the Sandbox Host (deployed onCentOS )  from my Window PC using PuTTY.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:44:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120303#M17318</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2016-02-02T15:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120304#M17319</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/12846/how-to-solve-connection-refused-errors-in-hdp.html#"&gt;@Kibrom GebreHiwot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Perhaps your /etc/hosts is wrong...
&lt;A href="https://community.hortonworks.com/questions/12846/how-to-solve-connection-refused-errors-in-hdp.html#"&gt;&lt;/A&gt; &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;What's in your /etc/hosts?  Is 10.0.225.60 there?&lt;/LI&gt;&lt;LI&gt;What is the eth0 ip address when you do a ifconfig?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Perhaps your ambari-server really did not start.&lt;/P&gt;&lt;P&gt;What is your ambari-server status after executing&lt;/P&gt;&lt;PRE&gt;&amp;gt; ambari-server status&lt;/PRE&gt;&lt;P&gt;If it is not running do &lt;/P&gt;&lt;PRE&gt;&amp;gt; ambari-server stop
&amp;gt; rm -f /var/run/ambari-server/ambari-server.pid 
&amp;gt; ambari-server start&lt;/PRE&gt;&lt;UL&gt;
&lt;LI&gt;Do you see an ambari-server process after executing ps -ef | grep ambari-server?&lt;/LI&gt;&lt;LI&gt;If not what is in the log file /var/log/ambari-server/ambari-server.log?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you don't see any errors follow the steps here: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/6227/sandbox-1270018080-not-accessible.html"&gt;https://community.hortonworks.com/articles/6227/sandbox-1270018080-not-accessible.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If
 NAT does not work try Bridged and get the ipaddress using ifconfig, 
restart Ambari-server and use that ip address when you do a &lt;A href="http://%3Cipaddress"&gt;http://:8080&lt;/A&gt;&amp;gt;:8080&lt;/P&gt;&lt;P&gt;Finally check the firewalls on your host.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:46:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120304#M17319</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-02-02T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120305#M17320</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369" target="_blank"&gt;Ancil McBarnett&lt;/A&gt; Much respect and thanks for your dedication!&lt;/P&gt;&lt;P&gt;I tried all the options, but no luck!&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/etc/hosts file looks like this: &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1713-hosts-file.png" style="width: 586px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22893iAF85524967F229B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1713-hosts-file.png" alt="1713-hosts-file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;eth0 IP address is 10.0.225.60&lt;/LI&gt;&lt;LI&gt;Ambari Server failed to start. Look at the screen shot&lt;UL&gt;&lt;LI&gt;"Connection refused"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I can see ambari-server process though&lt;/LI&gt;&lt;LI&gt;running netstat -nltu | grep 8080 returns nothing.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any thing about port forwarding? &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;netstat -nltu&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;8080 is not in the list of listening ports. &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/8162i5D49158274B1A86B/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="ambari-failed-to-start.png" title="ambari-failed-to-start.png" /&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:35:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120305#M17320</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2019-08-19T10:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120306#M17321</link>
      <description>&lt;P&gt;Seems you have a DB connectivity problem ,can you copy and paste a complete output of the Ambari failed to start log ?&lt;/P&gt;&lt;P&gt;The connection was closed when Java tried to read from it. This can be caused by:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;The PostgreSQL server being restarted&lt;/LI&gt;&lt;LI&gt;The PostgreSQL backend you were connected to being terminated&lt;/LI&gt;&lt;LI&gt;The PostgreSQL backend you were connected to crashing&lt;/LI&gt;&lt;LI&gt;Dodgy network connection&lt;/LI&gt;&lt;LI&gt;Badly behaved stateful firewalls&lt;/LI&gt;&lt;LI&gt;Idle connections timing out of the NAT connection tables of NAT firewall/routers&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;... and probably more. Check the PostgreSQL server logs to see if there's anything informative there; also consider doing some network tracing with a tool like Wireshark.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 19:29:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120306#M17321</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-02T19:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120307#M17322</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;Thanks for your prompt response!&lt;/P&gt;&lt;P&gt;I think the cause for the failure is that the PostgreSQL failed to connect. &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;service postgresql  start &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;results in : Starting postgresql service:                               [FAILED] &lt;/P&gt;&lt;P&gt;you can look at the below screen shot too. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vi /var/log/ambari-server/ambari-server.out&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1718-postgres-failed-connection-refused.png" style="width: 612px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22891i3FE4D0DA903833D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1718-postgres-failed-connection-refused.png" alt="1718-postgres-failed-connection-refused.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="1722-capture.png" style="width: 630px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22892i0378DBCD280B9E5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1722-capture.png" alt="1722-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any further fix?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:35:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120307#M17322</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2019-08-19T10:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120308#M17323</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt; port forwarding is available in network properties of your hypervisor.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 20:01:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120308#M17323</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-02T20:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120309#M17324</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;  The Sandbox is deployed on CentOS server (base OS) not on virtual machine. 
I have no GUI access to the server. I can access it only with PuTTY (remotely).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 20:14:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120309#M17324</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2016-02-02T20:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120310#M17325</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt;&lt;P&gt;I suggest to remove the vm and reimport the image as there are multiple issues. Postgres down and configuration all incorrect.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 20:20:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120310#M17325</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-02T20:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120311#M17326</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt; every hypervisor has CLI take a look at docs how to port forward using command line&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 20:20:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120311#M17326</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-02T20:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120312#M17327</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1178/kibgeb.html" nodeid="1178"&gt;@Kibrom Gebrehiwot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;These are some of the steps you should try before reinstalling your server!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Disable firewall / iptables on the host&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Run all the below command like root
Execute the below command on the server to disable the firewall, type the following command as the root user to disable firewall for IPv6: &lt;/P&gt;&lt;P&gt;
[root@hiroshima01 ~]#  service ip6tables stop &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# chkconfig ip6tables off &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# service iptables status
          IPv4 &lt;/P&gt;&lt;P&gt;[root@hiroshima01 etc] # service iptables save &lt;/P&gt;&lt;P&gt;[root@hiroshima01 etc] # service iptables stop &lt;/P&gt;&lt;P&gt;[root@hiroshima01 etc] #  chkconfig iptables off &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Disable Transparent Huge Pages  (THP)&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Disable it on the host otherwise the Ambari install will fail &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/enabled &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/defrag &lt;/P&gt;&lt;P&gt;To disable or make these changes persistent across reboots I add this to the bottom of my vi /etc/rc.local &lt;/P&gt;&lt;P&gt;&lt;EM&gt;#disable THP at boot time&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/enabled &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fi &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if test -f /sys/kernel/mm/redhat_transparent_hugepage/defrag; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;then
echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/defrag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
fi &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To validate THP is disabled, I run the below three commands, or any variant you choose from here . &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# cat /sys/kernel/mm/redhat_transparent_hugepage/defrag    #output should be always madvise [never]
[root@hiroshima01 ~]#  cat /sys/kernel/mm/redhat_transparent_hugepage/enabled  # output should be always madvise [never] &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Disable SELinux &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELinux must be disabled for Ambari to function. To temporarily disable SELinux, run the following command on each host in your cluster: &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# setenforce 0 &lt;/P&gt;&lt;P&gt;Permanently disabling SELinux so that on system reboot it does not restart edit the SELinux config and set SELINUX to disabled. on each host: &lt;/P&gt;&lt;P&gt;root@hiroshima01 ]# vi /etc/selinux/config &lt;/P&gt;&lt;P&gt;Add the below lines &lt;/P&gt;&lt;P&gt;&lt;EM&gt;# This file controls the state of SELinux on the system. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# SELINUX= can take one of these three values: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#   enforcing - SELinux security policy is enforced. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#   permissive - SELinux prints warnings instead of enforcing. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#   disabled - SELinux is fully disabled. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;SELINUX=disabled &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
# SELINUXTYPE= type of policy in use. Possible values are: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#    targeted - Only targeted network daemons are protected. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#    strict - Full SELinux protection. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELINUXTYPE=targeted&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Configure the NTPD services &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
You must setup the NTPD server on CentOS to successfully implement Ambari follow the below steps to install and start the NTPD server. As the root user. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;To install ntpdate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# yum install ntp ntpdate &lt;/P&gt;&lt;P&gt;Turn on the service: &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# chkconfig ntpd on &lt;/P&gt;&lt;P&gt;Synchronize the system clock with 0.pool.ntp.org server &lt;/P&gt;&lt;P&gt;[root@hiroshima01 bin]# ntpdate pool.ntp.org &lt;/P&gt;&lt;P&gt;2 Jan 21:42:49 ntpdate[5101]: 31.3.135.236 rate limit response from server. &lt;/P&gt;&lt;P&gt;2 Jan 21:43:56 ntpdate[5101]: step time server 212.51.144.44 offset 67.520940 sec &lt;/P&gt;&lt;P&gt;Check the NTPD services configure it start at system boot &lt;/P&gt;&lt;P&gt;[root@hiroshima01 bin]# chkconfig --list ntpd
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Start the NTP server.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;The following will continuously adjust system time from upstream NTP server. No need to run ntpdate: &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# /etc/init.d/ntpd start or &lt;/P&gt;&lt;P&gt;[root@hiroshima01 ~]# service ntpd start&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 21:18:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120312#M17327</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-02T21:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120313#M17328</link>
      <description>&lt;P&gt;Did you follow these steps during your setup&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.0.0/bk_ambari_reference/content/nndb-using-ambari-postgresql.html"&gt;Postgres for Ambari steps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 21:22:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120313#M17328</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-02T21:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120314#M17329</link>
      <description>&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; I followed all the above steps but Ambari server  and PostgreSQL can not start. Hue also failed to start.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;/etc/init.d/hue start &lt;/STRONG&gt;  # failed&lt;/P&gt;&lt;P&gt;The PostreSQL is embedded by default with HDP Sandbox 2.3. So, I did not do any configuration and it was working fine before some time. &lt;/P&gt;&lt;P&gt;Do I have to go for reinstalling the Sandbox?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 21:54:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120314#M17329</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2016-02-02T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120315#M17330</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Ambari server can't start at all!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 22:01:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120315#M17330</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2016-02-02T22:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve "Connection refused " errors in HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120316#M17331</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1178/kibgeb.html"&gt;@Kibrom Gebrehiwot&lt;/A&gt; Re-install should be the last resort because these are real conditions you will meet so start to diagnose and get the sandbox up and running would be a great feat !&lt;/P&gt;&lt;P&gt;How is you network configuration for the Sandbox?&lt;/P&gt;&lt;P&gt;Do backup your /etc/hosts and create a new hosts with the below entry &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;10.0.225.60  Sandbox.hortonworks.com         Sandbox&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; Set your network to DHCP and restart the sandbox &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 22:14:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-solve-quot-Connection-refused-quot-errors-in-HDP/m-p/120316#M17331</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-02T22:14:02Z</dc:date>
    </item>
  </channel>
</rss>

