<?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: How to import a mysqldump  in Hive to recreate the database (HDP 2.6) ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176177#M64409</link>
    <description>&lt;P&gt;Thank you for your answer but I think I was not clear enough with my explanation. The MySQL dump come from MariaDB. And I want to ingest the data from MariaDB but I can't access directly MariaDB but only a mysqldump of this database. I want to recreate the MariaDB in HDP 2.6 in some way. &lt;/P&gt;&lt;P&gt;My question is the same what are the best scenarios to do this workflow ? &lt;/P&gt;&lt;P&gt;Thank you a lot again. &lt;/P&gt;&lt;P&gt;Arnault&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 15:54:12 GMT</pubDate>
    <dc:creator>Arna</dc:creator>
    <dc:date>2017-07-07T15:54:12Z</dc:date>
    <item>
      <title>How to import a mysqldump  in Hive to recreate the database (HDP 2.6) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176175#M64407</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a mysqldump that is created every morning and I want to recreate the DB in  in Hive (HDP 2.6) ? &lt;/P&gt;&lt;P&gt;The size of the mysqldump file is small less than 1Go. &lt;/P&gt;&lt;P&gt;What are the best scenarios for this task ? &lt;/P&gt;&lt;P&gt;Thank you in advance for your answers.&lt;/P&gt;&lt;P&gt;Arnault&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 22:45:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176175#M64407</guid>
      <dc:creator>Arna</dc:creator>
      <dc:date>2017-07-06T22:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a mysqldump  in Hive to recreate the database (HDP 2.6) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176176#M64408</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12332/arnaultdroz.html" nodeid="12332" target="_blank"&gt;@Arnault Droz&lt;/A&gt;&lt;P&gt;If the mysqldump is for different version other than Hive 2.1.1000 in HDP 2.6. Then do the following:&lt;/P&gt;&lt;P&gt;1. Stop Hive services from Ambari.&lt;/P&gt;&lt;P&gt;2. Create new database under MySQL as say hive2:&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; create database hive2;
Query OK, 1 row affected (0.00 sec)
mysql&amp;gt; grant all privileges on hive2.* to 'hive'@'%' identified by 'hive';
Query OK, 0 rows affected (0.00 sec)&lt;/PRE&gt;&lt;P&gt;3. Restore database as:&lt;/P&gt;&lt;PRE&gt;mysql -u hive -phive hive2 &amp;lt; dumpfilename.sql&lt;/PRE&gt;&lt;P&gt;4. Update database connection string for mysql under Ambari -&amp;gt; Hive configs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16708-screen-shot-2017-07-06-at-110245-pm.png" style="width: 1516px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19716iDBE183B2561BA5B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16708-screen-shot-2017-07-06-at-110245-pm.png" alt="16708-screen-shot-2017-07-06-at-110245-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. Save configurations and try restarting. Since there is different in VERSION, this would fail.&lt;/P&gt;&lt;P&gt;6. Run Hive metatool command to upgrade the schema as below:&lt;/P&gt;&lt;PRE&gt;hive@ssnode260 bin]$ /usr/hdp/2.6.0.3-8/hive2/bin/schematool -upgradeSchema -dbType mysql&lt;/PRE&gt;&lt;P&gt;7. Restart Hive services from Ambari.&lt;/P&gt;&lt;P&gt;If the Hive metadata version is same as Hive 2.1.1000 in HDP 2.6, then follow steps 1 through 5.&lt;/P&gt;&lt;P&gt;Hope this helps.!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:00:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176176#M64408</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2019-08-18T10:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a mysqldump  in Hive to recreate the database (HDP 2.6) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176177#M64409</link>
      <description>&lt;P&gt;Thank you for your answer but I think I was not clear enough with my explanation. The MySQL dump come from MariaDB. And I want to ingest the data from MariaDB but I can't access directly MariaDB but only a mysqldump of this database. I want to recreate the MariaDB in HDP 2.6 in some way. &lt;/P&gt;&lt;P&gt;My question is the same what are the best scenarios to do this workflow ? &lt;/P&gt;&lt;P&gt;Thank you a lot again. &lt;/P&gt;&lt;P&gt;Arnault&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-import-a-mysqldump-in-Hive-to-recreate-the-database/m-p/176177#M64409</guid>
      <dc:creator>Arna</dc:creator>
      <dc:date>2017-07-07T15:54:12Z</dc:date>
    </item>
  </channel>
</rss>

