<?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: Migrating ambari database from one host to other in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116938#M50988</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also please check the ambari.properties and change the persistence type to remote when the DB is moved &lt;/P&gt;&lt;PRE&gt;server.persistence.type=local
to
server.persistence.type=remote &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;.
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can import the mysql dump as following on the remote Mysql host:&lt;/P&gt;&lt;PRE&gt;mysql -u ambari -pbigdata ambari &amp;lt; ambari_mydb_current.sql
&lt;/PRE&gt;&lt;P&gt;
Also please refer to the following link for preparing the mysql on the new host. (before importing the dump)
&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Before importing the dump you might want to create the DB users and grand desired permissions as mentioned in the above link&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2017 20:07:06 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-01-06T20:07:06Z</dc:date>
    <item>
      <title>Migrating ambari database from one host to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116935#M50985</link>
      <description>&lt;P&gt;We are running our ambari database with mysql on a dedicated host. Now we need to move the DB to a different host. what are the steps that needs to be done to make this migration smooth and retain all the data in the new database on the new host.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 19:55:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116935#M50985</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2017-01-06T19:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating ambari database from one host to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116936#M50986</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt; Please refer to the below documentation for moving ambari database to the new host.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-reference/content/ch_amb_ref_moving_the_ambari_server.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-reference/content/ch_amb_ref_moving_the_ambari_server.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 19:59:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116936#M50986</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2017-01-06T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating ambari database from one host to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116937#M50987</link>
      <description>&lt;P&gt;@ARUN&lt;/P&gt;&lt;P&gt;1. Stop ambari server&lt;/P&gt;&lt;P&gt;
2. Take your Ambari DB dump.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;pg_dump -U ambari ambari &amp;gt; /tmp/ambari_bk.psql
mysqldump -u ambari ambari &amp;gt; /tmp/ambari_bk.mysql&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;3. Now on the other Host import the mentioned DB dump.  And moke sure that the new DB host is accessible from ambari server.&lt;/P&gt;&lt;P&gt;
4. Now edit the ambari.properties  " /etc/ambari-server/conf/ambari.properties"  and add the correct JDBC URL to point to the new host:&lt;/P&gt;&lt;P&gt;
&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;server.jdbc.url=jdbc:oracle:thin:@oracle.database.hostname:1521/ambaridb&lt;/PRE&gt;&lt;P&gt;.
&lt;/P&gt;&lt;P&gt;5. Now try restarting ambari server.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 20:01:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116937#M50987</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-01-06T20:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating ambari database from one host to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116938#M50988</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also please check the ambari.properties and change the persistence type to remote when the DB is moved &lt;/P&gt;&lt;PRE&gt;server.persistence.type=local
to
server.persistence.type=remote &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;.
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can import the mysql dump as following on the remote Mysql host:&lt;/P&gt;&lt;PRE&gt;mysql -u ambari -pbigdata ambari &amp;lt; ambari_mydb_current.sql
&lt;/PRE&gt;&lt;P&gt;
Also please refer to the following link for preparing the mysql on the new host. (before importing the dump)
&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Before importing the dump you might want to create the DB users and grand desired permissions as mentioned in the above link&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 20:07:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116938#M50988</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-01-06T20:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating ambari database from one host to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116939#M50989</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;. it really helps&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 20:39:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-ambari-database-from-one-host-to-other/m-p/116939#M50989</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2017-01-06T20:39:11Z</dc:date>
    </item>
  </channel>
</rss>

