<?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 Changing IP and Hostname for Ambari Eco System in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287435#M213030</link>
    <description>&lt;P&gt;Hi All, I have a fresh Ambari eco system installed in my VMware Vsphere, assume its hostname is ambari01.example.com and IP Address is 192.168.1.10, I cloned it to ambari02 and changed IP 192.168.1.11. but unable to start services in ambari02.example, I think all eco system configuration files need to be modified, but not sure what all the files need to be modified. Might be some guys already tried this, can someone assist me. Thanks Niruu&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jan 2020 16:11:26 GMT</pubDate>
    <dc:creator>Niruu</dc:creator>
    <dc:date>2020-01-11T16:11:26Z</dc:date>
    <item>
      <title>Changing IP and Hostname for Ambari Eco System</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287435#M213030</link>
      <description>&lt;P&gt;Hi All, I have a fresh Ambari eco system installed in my VMware Vsphere, assume its hostname is ambari01.example.com and IP Address is 192.168.1.10, I cloned it to ambari02 and changed IP 192.168.1.11. but unable to start services in ambari02.example, I think all eco system configuration files need to be modified, but not sure what all the files need to be modified. Might be some guys already tried this, can someone assist me. Thanks Niruu&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 16:11:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287435#M213030</guid>
      <dc:creator>Niruu</dc:creator>
      <dc:date>2020-01-11T16:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IP and Hostname for Ambari Eco System</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287436#M213031</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73138"&gt;@Niruu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a link &lt;A href="https://docs.cloudera.com/HDPDocuments/Ambari-2.7.4.0/administering-ambari/content/amb_changing_host_names.html" target="_blank" rel="noopener"&gt;changing ambari hostnames&lt;/A&gt; that should help you. I have used it successfully before but there are 2 hidden undocumented caveats, you should manually change the hostname in the &lt;STRONG&gt;ambari.properties&lt;/STRONG&gt; there should be 2 or 3 properties to match the new VM hostname and also run some SQL like alter in the &lt;STRONG&gt;ambari, ranger, oozi, hive&lt;/STRONG&gt;&amp;nbsp; databases you have to do this for all the fore mentioned components.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The contents of your &lt;STRONG&gt;host_names_changes.json&lt;/STRONG&gt; should look like below make sure you have the correct cluster name, you will be prompted if you have already backed up your database etc in my case I usually&amp;nbsp; just accept , with a VM you can easily create another snapshot and you are good to go.&lt;/P&gt;&lt;P&gt;You must have completely stopped ambari and the agents&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;host_names_changes.json&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"cluster1" : {
"ambari01.example.com" : "ambari02.example.com"
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command should look like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;ambari-server update-host-names&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;+&lt;FONT color="#FF6600"&gt; host_names_changes.json&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# ambari-server update-host-names host_names_changes.json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After completion, you should see &lt;STRONG&gt;successful&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;Remember to update the &lt;STRONG&gt;ambari-agent.ini&lt;/STRONG&gt; to point to the new &lt;STRONG&gt;ambari02.example.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use the above document you could stop on number &lt;STRONG&gt;8&lt;/STRONG&gt; you don't need to format you Zk&lt;/P&gt;&lt;P&gt;For ambari database I am assuming you are using MariaDB or Mysql&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mysql -u &amp;lt;ambari_user&amp;gt; -p&amp;lt;ambari_user_password&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'&amp;lt;new_FQDN_new_VM&amp;gt;';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'&amp;lt;new_FQDN_new_VM&amp;gt;' IDENTIFIED BY '&amp;lt;ambari_user_password&amp;gt;';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hive to that for all the rest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mysql -u &amp;lt;hive_user&amp;gt; -p&amp;lt;hive_user_password&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GRANT ALL PRIVILEGES ON *.* TO 'hive'@'&amp;lt;new_FQDN_new_VM&amp;gt;';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;GRANT ALL PRIVILEGES ON *.* TO 'hive'@'&amp;lt;new_FQDN_new_VM&amp;gt;' IDENTIFIED BY '&amp;lt;hive_user_password&amp;gt;';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy hadooping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 16:05:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287436#M213031</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-01-11T16:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IP and Hostname for Ambari Eco System</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287437#M213032</link>
      <description>&lt;P&gt;Shelton - Thank you very much&lt;/P&gt;&lt;P&gt;I will give a try and post the update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Niruu&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 14:57:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287437#M213032</guid>
      <dc:creator>Niruu</dc:creator>
      <dc:date>2020-01-11T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IP and Hostname for Ambari Eco System</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287440#M213035</link>
      <description>&lt;P&gt;Hi Shelton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tons of thanks for you, you saved my whole weekend, Ambari is started as expected.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 17:37:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Changing-IP-and-Hostname-for-Ambari-Eco-System/m-p/287440#M213035</guid>
      <dc:creator>Niruu</dc:creator>
      <dc:date>2020-01-11T17:37:12Z</dc:date>
    </item>
  </channel>
</rss>

