<?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: Hbase export_snapshot between different major versions. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349410#M235649</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98793"&gt;@Krisssh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;'/hbase' is a hbase.root directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. The steps should work for HDP3 to CDP, I haven't checked for HDP2 to CDP. There are few known issues when migrating phoenix tables from HDP2 to CDP and it should follow a path HDP2=&amp;gt; HDP3 =&amp;gt; CDP. For Hbase tables, as per&amp;nbsp;&lt;A href="https://deleforterie.com/wordpress/index.php/2022/02/22/export-hbase-tables-from-hdp-2-6-to-cdp-7-1/" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;it has worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;I&gt;--&lt;BR /&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 07:02:38 GMT</pubDate>
    <dc:creator>rki_</dc:creator>
    <dc:date>2022-08-03T07:02:38Z</dc:date>
    <item>
      <title>Hbase export_snapshot between different major versions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349295#M235597</link>
      <description>&lt;P&gt;As per the accepted solution posted in &lt;A href="https://community.cloudera.com/t5/Support-Questions/HBase-data-migration-from-one-cluster-to-other-cluster/td-p/204761" target="_self"&gt;this&lt;/A&gt; question, export_snapshot is not supported ( or may not work ) between major versions of Hbase. However, &lt;A href="https://docs.cloudera.com/runtime/7.2.10/managing-hbase/topics/hbase-using-snapshots.html" target="_self"&gt;this&lt;/A&gt; CDP documentation mentions the supportability of export_snapshot from CDH 5 (Hbase 1.2.0) to CDP 7 (HBase 2.2.3).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working on migrating Hbase tables from Hbase 1.2 to Hbase 2 and would like to know if "export_snapshot" work in this scenario.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 23:08:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349295#M235597</guid>
      <dc:creator>Krisssh</dc:creator>
      <dc:date>2022-08-01T23:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase export_snapshot between different major versions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349313#M235612</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98793"&gt;@Krisssh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, You can perform an export_snapshot from&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;CDH 5 to&amp;nbsp;CDP 7. In CDH5, the default Hfiles version is 2 and in CDP, it's 3. So the snapshotted files will remain in version 2 in CDP and when the tables are restored from the snapshot, the snapshot will gradually have the snapshot files rewritten into Version 3 files, as the new data is ingested and compactions will rewrite data originally in the snapshot Version 2 file into the new Version 3 files for the table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 06:35:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349313#M235612</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-08-02T06:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase export_snapshot between different major versions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349316#M235614</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80393"&gt;@rki_&lt;/a&gt;&amp;nbsp;Thank you for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though CDH 6 and CDP 7 use Hbase 2, why is the behavior different for CDP?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 07:08:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349316#M235614</guid>
      <dc:creator>Krisssh</dc:creator>
      <dc:date>2022-08-02T07:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase export_snapshot between different major versions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349343#M235625</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98793"&gt;@Krisssh&lt;/a&gt;&amp;nbsp;, I don't think there should be any challenge exporting the snapshot from CDH5 to CDH6 just like we export it to CDP. So I believe the&amp;nbsp;solution&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/HBase-data-migration-from-one-cluster-to-other-cluster/td-p/204761" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;is not very accurate when it comes to exporting snapshot between major versions.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;0) Cluster &lt;SPAN class="c-mrkdwn__highlight"&gt;versions&lt;/SPAN&gt;
$ &lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt; &lt;SPAN class="c-mrkdwn__highlight"&gt;version&lt;/SPAN&gt;
&lt;SPAN class="c-mrkdwn__highlight"&gt;HBase&lt;/SPAN&gt; 1.2.0-cdh5.17.0-&lt;SPAN class="c-mrkdwn__highlight"&gt;SNAPSHOT&lt;/SPAN&gt;

$ &lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt; &lt;SPAN class="c-mrkdwn__highlight"&gt;version&lt;/SPAN&gt;
&lt;SPAN class="c-mrkdwn__highlight"&gt;HBase&lt;/SPAN&gt; 2.1.0-cdh6.3.2

0.1) Make sure there's no inconsistencies reported for the target table

1) Take a &lt;SPAN class="c-mrkdwn__highlight"&gt;snapshot&lt;/SPAN&gt; in C5
&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;&amp;gt; count 'cluster_test'
100000 row(s) in 16.2700 seconds

&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;&amp;gt; &lt;SPAN class="c-mrkdwn__highlight"&gt;snapshot&lt;/SPAN&gt; 'cluster_test', 'cluster_test-ss1'

2) Run the &lt;SPAN class="c-mrkdwn__highlight"&gt;ExportSnapshot&lt;/SPAN&gt; tool in C5 
$ &lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt; org.apache.hadoop.&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;.&lt;SPAN class="c-mrkdwn__highlight"&gt;snapshot&lt;/SPAN&gt;.&lt;SPAN class="c-mrkdwn__highlight"&gt;ExportSnapshot&lt;/SPAN&gt; -&lt;SPAN class="c-mrkdwn__highlight"&gt;snapshot&lt;/SPAN&gt; cluster_test-ss1 -copy-to &lt;A class="c-link c-link--underline" href="hdfs://host-10-17-102-79.coe.cloudera.com:8020/hbase" target="_blank" rel="noopener noreferrer"&gt;hdfs://host-10-17-xx.xx:8020/&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;&lt;/A&gt;

3) Clone the &lt;SPAN class="c-mrkdwn__highlight"&gt;snapshot&lt;/SPAN&gt; in C6
&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;&amp;gt; list_&lt;SPAN class="c-mrkdwn__highlight"&gt;snapshots&lt;/SPAN&gt; &amp;lt;=== returns available &lt;SPAN class="c-mrkdwn__highlight"&gt;snapshots&lt;/SPAN&gt;
&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;&amp;gt; clone_&lt;SPAN class="c-mrkdwn__highlight"&gt;snapshot&lt;/SPAN&gt; 'cluster_test-ss1','cluster_test-new'

4) Confirm the data in C6
&lt;SPAN class="c-mrkdwn__highlight"&gt;hbase&lt;/SPAN&gt;&amp;gt; count 'cluster_test-new'
100000 row(s)

5) Run &lt;SPAN class="c-mrkdwn__highlight"&gt;major&lt;/SPAN&gt; compaction against the cloned table in C6H&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 10:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349343#M235625</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-08-02T10:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase export_snapshot between different major versions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349381#M235635</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80393"&gt;@rki_&lt;/a&gt;&amp;nbsp;, for confirming the solution works for migration between C5 and C6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example you posted,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Can you confirm the exported snapshot path '/hbase' is a hbase.root directory ? Or should it be '/hbase'&lt;/P&gt;&lt;P&gt;always ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Similar steps should work for any Hbase 1 to Hbase 2 , example HDP to CDP, right ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:25:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349381#M235635</guid>
      <dc:creator>Krisssh</dc:creator>
      <dc:date>2022-08-02T19:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase export_snapshot between different major versions.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349410#M235649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98793"&gt;@Krisssh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;'/hbase' is a hbase.root directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. The steps should work for HDP3 to CDP, I haven't checked for HDP2 to CDP. There are few known issues when migrating phoenix tables from HDP2 to CDP and it should follow a path HDP2=&amp;gt; HDP3 =&amp;gt; CDP. For Hbase tables, as per&amp;nbsp;&lt;A href="https://deleforterie.com/wordpress/index.php/2022/02/22/export-hbase-tables-from-hdp-2-6-to-cdp-7-1/" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;it has worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;I&gt;--&lt;BR /&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 07:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-export-snapshot-between-different-major-versions/m-p/349410#M235649</guid>
      <dc:creator>rki_</dc:creator>
      <dc:date>2022-08-03T07:02:38Z</dc:date>
    </item>
  </channel>
</rss>

