<?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 Mysql Database lost in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281705#M209534</link>
    <description>&lt;P&gt;I got another question also.&lt;/P&gt;&lt;P&gt;What about the views ? Like File View and Hive View, can I create them back ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 08:35:35 GMT</pubDate>
    <dc:creator>moubaba</dc:creator>
    <dc:date>2019-10-31T08:35:35Z</dc:date>
    <item>
      <title>Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281647#M209501</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;
&lt;P&gt;I have development cluster where I lost my ambari database which was on&amp;nbsp; a mysql database.&lt;/P&gt;
&lt;P&gt;Is there anyway to reinstall ambari server and have my cluster back up again ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:40:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281647#M209501</guid>
      <dc:creator>moubaba</dc:creator>
      <dc:date>2019-10-30T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281667#M209511</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70733"&gt;@moubaba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know its a dompting task but unfortunately, I could create a link by an article for Jordan Moore let me try to elaborate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple advice always run a &lt;STRONG&gt;crontab job&lt;/STRONG&gt; to dump all your databases or at leat the ambari DB&amp;nbsp; nightly !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly Ambari doesn't control any data residing on the data nodes, so you should be safe there. Stop all ambari-agents in the cluster, maybe even uninstalling it so as to let all the Hadoop components remain running "in the dark".&lt;/P&gt;&lt;P&gt;Install and set up a new Ambari server, add a cluster but do not register any&amp;nbsp; hosts [&lt;STRONG&gt;very important&lt;/STRONG&gt;]. If you uninstalled the &lt;STRONG&gt;ambari -agents&lt;/STRONG&gt; on the nodes please do re-install ensure the &lt;STRONG&gt;ambari-server&lt;/STRONG&gt; and the&lt;STRONG&gt; agents&lt;/STRONG&gt; are the same versions.&lt;/P&gt;&lt;P&gt;Do the below if you removed Ambari and the agents&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# yum repolist&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;On the ambari-server&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# yum install ambari-server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# yum install ambari-agent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;On the other hosts&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# yum install ambari-agent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Reconfigure manually the ambari agents [&lt;STRONG&gt;ambari-agent.ini&lt;/STRONG&gt;] to point at the new Ambari server address, and start them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the hosts in the Ambari server UI, selecting "&lt;STRONG&gt;manual registration&lt;/STRONG&gt;" option the hosts register successfully since the agents are running a point to note install and configure an ambari-agent on the Ambari server to point to itself !!!!&lt;/P&gt;&lt;P&gt;After this, you get the option of installing clients and servers.&lt;/P&gt;&lt;P&gt;Now, you could try to "&lt;STRONG&gt;reinstall&lt;/STRONG&gt;" what is already there, but you might want to deselect all the servers on the data node column.&lt;/P&gt;&lt;P&gt;In theory, it will try to perform OS package installation, and say that the service already exists, and doesn't error out. If it does error, then restart the install process, but deselect everything. At which point, it should continue and now you have Ambari back up and running with all the hosts monitored, just with no processes to configure.&lt;/P&gt;&lt;P&gt;To add the services back, you would need to use the&lt;STRONG&gt; Ambari REST API&lt;/STRONG&gt; to add back in the respective &lt;STRONG&gt;Services&lt;/STRONG&gt;, &lt;STRONG&gt;Components&lt;/STRONG&gt;, and&lt;STRONG&gt; Host Components&lt;/STRONG&gt; that you have running on the cluster. If you can't remember all the Services, Components, and Host Components then go to each host and do a process check to see what's running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Variables&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export AMBARI_USER=admin&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;export AMBARI_PASSWD=admin&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;export CLUSTER_NAME=&amp;lt;New_Cluster_name&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;export AMBARI_SERVER=&amp;lt;Your_new_ambari_server_FQDN&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;export AMBARI_PORT=8080&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;List all services related to hive&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;In the below example I am listing all hive components&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -u $AMBARI_USER:$AMBARI_PASSWD -H 'X-Requested-By: ambari' -X GET "http://$AMBARI_SERVER:$AMBARI_PORT/api/v1/clusters/$CLUSTER_NAME/services/HIVE"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Adding back pig&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -k -u $AMBARI_USER:$AMBARI_PASSWD -H "X-Requested-By:ambari" -i -X POST -d '{"RequestInfo":{"context":"Install PIG"}, "Body":{"HostRoles":{"state":"INSTALLED"}}}' 'http://'$AMBARI_SERVER':$AMBARI_PORT/api/v1/clusters/'$CLUSTER_NAME'/services/PIG/components/PIG'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is the time to get your hands dirty &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This isn't production so it should train you for a real situation&lt;BR /&gt;Happy hadooping !!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 19:35:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281667#M209511</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-30T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281703#M209532</link>
      <description>&lt;P&gt;Thanks Shelton for your&amp;nbsp; very detailled response. It is really helpful.&lt;/P&gt;&lt;P&gt;Concerning the adding back services with the API : does it install the services again ?&lt;/P&gt;&lt;P&gt;For example, if I add back Hive services does it install hive again ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 08:16:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281703#M209532</guid>
      <dc:creator>moubaba</dc:creator>
      <dc:date>2019-10-31T08:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281705#M209534</link>
      <description>&lt;P&gt;I got another question also.&lt;/P&gt;&lt;P&gt;What about the views ? Like File View and Hive View, can I create them back ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 08:35:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281705#M209534</guid>
      <dc:creator>moubaba</dc:creator>
      <dc:date>2019-10-31T08:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281752#M209568</link>
      <description>&lt;P&gt;Hello Shelton&lt;/P&gt;&lt;P&gt;Any help to recreate Ambari Views ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:50:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281752#M209568</guid>
      <dc:creator>moubaba</dc:creator>
      <dc:date>2019-10-31T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281799#M209590</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70733"&gt;@moubaba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a fantastic document by&amp;nbsp;&lt;SPAN&gt;Artem Ervits&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Ambari-Views-REST-API-Overview/ta-p/248393" target="_blank" rel="noopener"&gt;&amp;nbsp;Ambari Views REST API Overview&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that answers your query&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Happy hadooping&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 20:45:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/281799#M209590</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-31T20:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/323994#M229265</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm facing the some issue, and I need help please.&lt;/P&gt;&lt;P&gt;I have 2 DB servers one Master and the second is slave, so after crash of the DB on the master node because the FS of the mysql is full, I try to establish the situation but I have the new problem after restarting the DB master correctly, all requests to tables give me the error&amp;nbsp;ERROR 1932 (42S02): Table '*********' doesn't exist in engine so I suppose the DB is corrupt, so my problem is about database ambari only this DB not replicate on slave node and I have only the old baskup for Ambari,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is if I restore the DB ambari and I start Ambari with, can'I be sure to find the cluster on the some situation before the crash and be sure of all services restart correctly without impact or I have to execute&amp;nbsp; this&amp;nbsp; solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not confident for reset/reinstall ambari server and agents, especially how to registre all hosts with services without impact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 13:41:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/323994#M229265</guid>
      <dc:creator>rachida_el-hamm</dc:creator>
      <dc:date>2021-09-09T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/324000#M229267</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/33659"&gt;@rachida_el-hamm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Here is a very good resource, sit back and sip your coffee or tea. It should help you resolve your &lt;A href="https://www.youtube.com/watch?v=014KbCYayuE" target="_self"&gt;MySQL issue&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Happy hadooping&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 14:19:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/324000#M229267</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2021-09-09T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Mysql Database lost</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/324290#M229328</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/33659"&gt;@rachida_el-hamm&lt;/a&gt;, did&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;'s response help you resolve your issue?&amp;nbsp;&amp;nbsp;If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 06:23:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Mysql-Database-lost/m-p/324290#M229328</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-09-14T06:23:59Z</dc:date>
    </item>
  </channel>
</rss>

