<?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 backup hive tables ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170115#M57764</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16024/npawar.html" nodeid="16024"&gt;@Nikhil Pawar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;1) Stop Hive on the target cluster&lt;/P&gt;&lt;P&gt;2) Distcp all the necessary files on HDFS to the secondary cluster.  &lt;/P&gt;&lt;P&gt;3) Take a SQL dump of your Hive Metastore (which is in MySQL or Postgres).  &lt;/P&gt;&lt;P&gt;4) Restore the SQL dump on your target cluster.  &lt;/P&gt;&lt;P&gt;5) Use the Hive Metatool "-updateLocation" command on the target cluster to change the Metastore URIs&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+MetaTool" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+MetaTool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;6) Start Hive on the target cluster&lt;/P&gt;&lt;P&gt;To make the process easier, assuming this is a one-time thing, I suggest that you copy the entire Metastore rather than trying to pick and choose certain tables.  While being selective is possible, it will add a bit more complexity to your process.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 22:02:28 GMT</pubDate>
    <dc:creator>egarelnabi</dc:creator>
    <dc:date>2017-03-22T22:02:28Z</dc:date>
    <item>
      <title>how to backup hive tables ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170114#M57763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have cluster of 24 nodes. I want to take backup of multiple hive tables and wanted to migrate over another cluster having 3 nodes. can anyone tell me the best way.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:29:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170114#M57763</guid>
      <dc:creator>npawar</dc:creator>
      <dc:date>2017-03-22T21:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to backup hive tables ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170115#M57764</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16024/npawar.html" nodeid="16024"&gt;@Nikhil Pawar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;1) Stop Hive on the target cluster&lt;/P&gt;&lt;P&gt;2) Distcp all the necessary files on HDFS to the secondary cluster.  &lt;/P&gt;&lt;P&gt;3) Take a SQL dump of your Hive Metastore (which is in MySQL or Postgres).  &lt;/P&gt;&lt;P&gt;4) Restore the SQL dump on your target cluster.  &lt;/P&gt;&lt;P&gt;5) Use the Hive Metatool "-updateLocation" command on the target cluster to change the Metastore URIs&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+MetaTool" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+MetaTool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;6) Start Hive on the target cluster&lt;/P&gt;&lt;P&gt;To make the process easier, assuming this is a one-time thing, I suggest that you copy the entire Metastore rather than trying to pick and choose certain tables.  While being selective is possible, it will add a bit more complexity to your process.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:02:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170115#M57764</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-03-22T22:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to backup hive tables ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170116#M57765</link>
      <description>&lt;P&gt;thanks eyad.. i will check with this. thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170116#M57765</guid>
      <dc:creator>npawar</dc:creator>
      <dc:date>2017-03-22T22:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to backup hive tables ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170117#M57766</link>
      <description>&lt;P&gt;Below posts also talks about Backing up Hive tables:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/394/what-are-best-practices-for-setting-up-backup-and.html" target="_blank"&gt;https://community.hortonworks.com/questions/394/what-are-best-practices-for-setting-up-backup-and.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/78292/backup-specific-hive-table.html" target="_blank"&gt;https://community.hortonworks.com/questions/78292/backup-specific-hive-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 01:01:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-backup-hive-tables/m-p/170117#M57766</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-03-23T01:01:37Z</dc:date>
    </item>
  </channel>
</rss>

