<?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: Change Ambari heartbeat and handshake ports in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110717#M30260</link>
    <description>&lt;P&gt;Thanks for pointing me out &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;, I was able to get it working via config files. However which one of these options in ambari-server setup-security" will achieve the same result?&lt;/P&gt;&lt;PRE&gt;[root@poc3:/etc] ambari-server setup-security
Using python  /usr/bin/python
Security setup options...
===========================================================================
Choose one of the following options: 
  [1] Enable HTTPS for Ambari server.
  [2] Encrypt passwords stored in ambari.properties file.
  [3] Setup Ambari kerberos JAAS configuration.
  [4] Setup truststore.
  [5] Import certificate to truststore.
===========================================================================
Enter choice, (1-5):&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 May 2016 20:44:21 GMT</pubDate>
    <dc:creator>milan_sladky</dc:creator>
    <dc:date>2016-05-31T20:44:21Z</dc:date>
    <item>
      <title>Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110710#M30253</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Due to many reasons I am not able to use ports 8440 and 8441 for Ambari handshakes and heartbeats. Where can I set these ports to something suitable for my environment?&lt;/P&gt;&lt;P&gt;Thx a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 19:00:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110710#M30253</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-05-31T19:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110711#M30254</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10804/milansladky.html" nodeid="10804"&gt;@Milan Sladky&lt;/A&gt;&lt;P&gt;Try through this command.&lt;/P&gt;&lt;PRE&gt;ambari-server setup-security&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 19:20:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110711#M30254</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-31T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110712#M30255</link>
      <description>&lt;P&gt;No, it's not possible to set it up there... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 19:36:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110712#M30255</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-05-31T19:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110713#M30256</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10804/milansladky.html" nodeid="10804"&gt;@Milan Sladky&lt;/A&gt; &lt;/P&gt;&lt;P&gt;What error you are getting? alternatively you can try setting below parameter manually in ambari-server.properties file and see if that solve your problem. Make sure amabri agent conf should knows about these ports.&lt;/P&gt;&lt;PRE&gt;security.server.two_way_ssl.port=8787
security.server.one_way_ssl.port=8788&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 19:52:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110713#M30256</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-31T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110714#M30257</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10804/milansladky.html" nodeid="10804"&gt;@Milan Sladky&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;per documentation it say we can add the property "client.api.port=&amp;lt;port_number&amp;gt;" and can modify the port number to some other value -&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_optional_changing_the_default_ambari_server_port.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_optional_changing_the_default_ambari_server_port.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this doesn't works. When i tried adding this property and restart ambari then usually ambari listen on both ports - ie new port and 8441.&lt;/P&gt;&lt;P&gt;When checked in ambari code, i see the value is hard coded. Please check below -&lt;/P&gt;&lt;P&gt;ambari -&amp;gt; Configuration.java&lt;/P&gt;&lt;P&gt;  public static final String SRVR_TWO_WAY_SSL_PORT_DEFAULT = "8441"; &lt;/P&gt;&lt;P&gt;  public static final String SRVR_ONE_WAY_SSL_PORT_DEFAULT = "8440";&lt;/P&gt;&lt;P&gt;I think this is BUG.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 20:17:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110714#M30257</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-31T20:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110715#M30258</link>
      <description>&lt;P&gt;For client you can use "/etc/ambari-agent/conf/ambari-agent.ini"&lt;/P&gt;&lt;P&gt;and modify below params -&lt;/P&gt;&lt;P&gt;url_port=8440&lt;/P&gt;&lt;P&gt;secured_url_port=8441&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 20:18:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110715#M30258</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-31T20:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110716#M30259</link>
      <description>&lt;P&gt;
	I was able to get it working:&lt;/P&gt;&lt;P&gt;
	On the Ambari Server set these parameters in /etc/ambari-server/conf/ambari.properties:&lt;/P&gt;&lt;PRE&gt;security.server.two_way_ssl.port=5222
security.server.one_way_ssl.port=5223&lt;/PRE&gt;&lt;P&gt;On the Ambari Agent set "url_port" and "secured_url_port" parameters in [server] section in /etc/ambari-agent/conf/ambari-agent.ini:&lt;/P&gt;&lt;PRE&gt;[server]
url_port=5223
secured_url_port=5222&lt;/PRE&gt;&lt;P&gt;Then restart both server and agent(s).&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 20:39:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110716#M30259</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-05-31T20:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110717#M30260</link>
      <description>&lt;P&gt;Thanks for pointing me out &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;, I was able to get it working via config files. However which one of these options in ambari-server setup-security" will achieve the same result?&lt;/P&gt;&lt;PRE&gt;[root@poc3:/etc] ambari-server setup-security
Using python  /usr/bin/python
Security setup options...
===========================================================================
Choose one of the following options: 
  [1] Enable HTTPS for Ambari server.
  [2] Encrypt passwords stored in ambari.properties file.
  [3] Setup Ambari kerberos JAAS configuration.
  [4] Setup truststore.
  [5] Import certificate to truststore.
===========================================================================
Enter choice, (1-5):&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 20:44:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110717#M30260</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-05-31T20:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110718#M30261</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/36636/change-ambari-heartbeat-and-handshake-ports.html#"&gt;@Milan Sladky&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; , please accept the answer to close this thread.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 20:46:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110718#M30261</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-31T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change Ambari heartbeat and handshake ports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110719#M30262</link>
      <description>&lt;P&gt;Created Jira issue: &lt;A href="https://hortonworks.jira.com/browse/BUG-58987" target="_blank"&gt;https://hortonworks.jira.com/browse/BUG-58987&lt;/A&gt; to correct/clarify the linked instruction&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 04:23:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-Ambari-heartbeat-and-handshake-ports/m-p/110719#M30262</guid>
      <dc:creator>mhovermale</dc:creator>
      <dc:date>2016-06-01T04:23:15Z</dc:date>
    </item>
  </channel>
</rss>

