<?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: ambari-agent connection refused after host reboot in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-connection-refused-after-host-reboot/m-p/241207#M203011</link>
    <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer" href="http://@Adri%C3%A1n%20Gil" target="_blank"&gt;@Adrián Gil&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Changing the hostname &lt;STRONG&gt;/etc/hosts&lt;/STRONG&gt; is not enough there are the below step you MUST perform to have your Cluster working again. In&lt;STRONG&gt; Ambari Web &amp;gt; Dashboard, stop all services&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Stop ambari-server and ambari-agents on all hosts.&lt;/P&gt;&lt;PRE&gt;# ambari-server stop
# ambari-agent stop&lt;/PRE&gt;&lt;P&gt;Create a file  host_names_changes.json file with hostnames changes.&lt;/P&gt;&lt;P&gt;Contents of the &lt;STRONG&gt;host_names_changes.json&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
&amp;nbsp; "bigdata" : {
&amp;nbsp; &amp;nbsp; &amp;nbsp; "old_name_here" : "bigdata-es"
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;From the directory where you saved the above file as a root user run &lt;/P&gt;&lt;PRE&gt;# ambari-server update-host-names host_names_changes.json&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After successful execution, your ambari will update all the necessary files except the old hostnames in ambari.properties change the below values &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Change these 3  values in &lt;STRONG&gt;/etc/ambari-server/conf/ambari.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;server.jdbc.rca.url=
server.jdbc.url=jdbc=
server.jdbc.hostname=&lt;/PRE&gt;&lt;P&gt;You will need to change also values for hive,oozie etc change according to your installation&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Hive&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;grant all privileges on hive.* to 'hive'@'bigdata-es' identified by 'hive_password';
grant all privileges on hive.* to 'hive'@'bigdata-es' with grant option;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;# Oozie&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;grant all privileges on oozie.* to 'hive'@'bigdata-es' identified by 'oozie_password';
grant all privileges on oozie.* to 'hive'@'bigdata-es' with grant option;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;# Ranger&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;grant all privileges on ranger.* to 'hive'@'bigdata-es' identified by 'ranger_password';
grant all privileges on ranger.* to 'hive'@'bigdata-es' with grant option;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;# Rangerkms&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;grant all privileges on rangerkms.* to 'hive'@'bigdata-es' identified by 'rangerkms_password';
grant all privileges on rangerkms.* to 'hive'@'bigdata-es' with grant option;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After doing the above now you can restart amabri and the ambari-agent hoping you have changed to the name in ambari-agent.ini, &lt;/P&gt;&lt;P&gt;Start ambari-server and ambari-agents on all hosts.&lt;/P&gt;&lt;PRE&gt;# ambari-server start
# ambari-agent start&lt;/PRE&gt;&lt;P&gt;Before running the Ambari component startall make sure hive,oozie,ranger etc have the correct hostname in the Ambari UI Configs !!&lt;/P&gt;&lt;P&gt;Happy Hadooping&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 22:02:32 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-05-24T22:02:32Z</dc:date>
  </channel>
</rss>

