<?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 table copy from one cluster to other in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157254#M41004</link>
    <description>&lt;P&gt;In this if we copy the Hfiles manually from one Hbase cluster to another, in that case list command dispalys all the tables, But scanning a table does not shown any data. This is because i have not copied META table enteries. So is there a way to copy META table enteries to another hbase instance in a way that both the already exisiting table and new tables exist with their data.&lt;/P&gt;&lt;P&gt;,
&lt;/P&gt;&lt;P&gt;If we manually copy Hfiles from Hbase instance to another. In that case, list will display the tables but scan will not show the data because we have not copied META table. So is there a way to copy the enteries of MEta table also, in a way that new tables and already exisiting tables both are retained.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2018 23:34:13 GMT</pubDate>
    <dc:creator>priyankaajindal</dc:creator>
    <dc:date>2018-01-30T23:34:13Z</dc:date>
    <item>
      <title>hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157248#M40998</link>
      <description>&lt;P&gt;Is there a way to copy hbase( phoenix) tables from one cluster to the other. If  so can anyone tell what is the best option?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 16:24:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157248#M40998</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-09-17T16:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157249#M40999</link>
      <description>&lt;P&gt;Hi &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;You have several option to do this:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://hbase.apache.org/book.html#copy.table"&gt;CopyTable&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://hbase.apache.org/book.html#export"&gt;Export&lt;/A&gt; the table, copy the files into a new cluster and &lt;A href="https://hbase.apache.org/book.html#import"&gt;Import&lt;/A&gt; the table (see documentation section after CopyTable)&lt;/LI&gt;&lt;LI&gt;In HDP 2.5, there's a new feature of &lt;A href="https://hbase.apache.org/book.html#ops.snapshots"&gt;snapshooting&lt;/A&gt;. I am not sure if this feature is complete since I didn't try it. There's an open &lt;A href="https://issues.apache.org/jira/browse/HBASE-7912"&gt;Jira&lt;/A&gt; and the backup/restore feature is listed as &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_release-notes/content/tech_previews.html"&gt;Tech Preview&lt;/A&gt;. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Note that the first two options can have an impact on the RegionServer while the third one has minimal impact. &lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 17:49:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157249#M40999</guid>
      <dc:creator>ahadjidj</dc:creator>
      <dc:date>2016-09-17T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157250#M41000</link>
      <description>&lt;P&gt;You can take a look at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hbase.apache.org/book.html#ops.snapshots" target="_blank"&gt;http://hbase.apache.org/book.html#ops.snapshots&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Especially:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hbase.apache.org/book.html#ops.snapshots.export" target="_blank"&gt;http://hbase.apache.org/book.html#ops.snapshots.export&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The backup / restore feature in HDP 2.5 makes backing up multiple tables easy to operate.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2016 03:09:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157250#M41000</guid>
      <dc:creator>tyu</dc:creator>
      <dc:date>2016-09-18T03:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157251#M41001</link>
      <description>&lt;P&gt;Please see below options and &lt;STRONG&gt;NOTE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE : &lt;/STRONG&gt;for both options CopyTable and Export/Import&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Since the cluster is up, there is a risk that edits could be missed in the export process.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://hbase.apache.org/0.94/book/ops_mgt.html#copytable"&gt;http://hbase.apache.org/0.94/book/ops_mgt.html#copytable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CopyTable is a utility that can copy part or of all of a table, either to the same cluster or another cluster. The usage is as follows:&lt;/P&gt;&lt;PRE&gt;$ bin/hbase org.apache.hadoop.hbase.mapreduce.CopyTable [--starttime=X] [--endtime=Y] [--new.name=NEW] [--peer.adr=ADR] tablename&lt;/PRE&gt;&lt;P&gt;&lt;A href="http://hbase.apache.org/0.94/book/ops_mgt.html#export"&gt;http://hbase.apache.org/0.94/book/ops_mgt.html#export&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;14.1.7. Export&lt;/H3&gt;&lt;P&gt;Export is a utility that will dump the contents of table to HDFS in a sequence file. Invoke via:&lt;/P&gt;&lt;PRE&gt;$ bin/hbase org.apache.hadoop.hbase.mapreduce.Export &amp;lt;tablename&amp;gt; &amp;lt;outputdir&amp;gt; [&amp;lt;versions&amp;gt; [&amp;lt;starttime&amp;gt; [&amp;lt;endtime&amp;gt;]]]
&lt;/PRE&gt;&lt;P&gt;Note: caching for the input Scan is configured via &lt;CODE&gt;hbase.client.scanner.caching&lt;/CODE&gt; in the job configuration.&lt;/P&gt;&lt;H3&gt;14.1.8. Import&lt;/H3&gt;&lt;P&gt;Import is a utility that will load data that has been exported back into HBase. Invoke via:&lt;/P&gt;&lt;P&gt;$ bin/hbase org.apache.hadoop.hbase.mapreduce.Import &amp;lt;tablename&amp;gt; &amp;lt;inputdir&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:41:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157251#M41001</guid>
      <dc:creator>ripu</dc:creator>
      <dc:date>2016-09-19T17:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157252#M41002</link>
      <description>&lt;P&gt;@ARUN,&lt;/P&gt;&lt;P&gt;Both the mathods "Copytable" and "Import/Export of table" are good for this but they will degrade the performance of regionserver while copying. I would preffer "Snapshot" mathod best for Backup and Recovery.&lt;/P&gt;&lt;P&gt;Note:- Snapshot method will only work if both cluster are of same version of Hbase. I tried it.&lt;/P&gt;&lt;P&gt;If your both cluster hbase versions are different then you can use Copytable method.&lt;/P&gt;&lt;P&gt;Snapshot method,&lt;/P&gt;&lt;P&gt;Go to hbase-shell and Take a snapshot of table,&lt;/P&gt;&lt;P&gt;=&amp;gt;hbase shell&lt;/P&gt;&lt;P&gt;=&amp;gt;snapshot "SOURCE_TABLE_NAME","SNAPSHOT_TABLE_NAME"&lt;/P&gt;&lt;P&gt;Then you can Export that snapshot to other cluster like,&lt;/P&gt;&lt;P&gt;=&amp;gt;bin/hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot SNAPSHOT_TABLE_NAME -copy-to hdfs://DESTINATION_CLUSTER_ACTIVE_NAMENODE_ADDRESS:8020/hbase -mappers 16&lt;/P&gt;&lt;P&gt;After this you can restore the table on DESTINATION Cluster as,On Dest_Cluster,&lt;/P&gt;&lt;P&gt;=&amp;gt;hbase shell&lt;/P&gt;&lt;P&gt;=&amp;gt;disable "DEST_TABLENAME"&lt;/P&gt;&lt;P&gt;=&amp;gt;restore_snapshot "SNAPSHOT_TABLE_NAME"&lt;/P&gt;&lt;P&gt;Done your table will be copied.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:18:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157252#M41002</guid>
      <dc:creator>nitinshk77</dc:creator>
      <dc:date>2016-09-19T18:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157253#M41003</link>
      <description>&lt;P&gt;@AMIT,&lt;/P&gt;&lt;P&gt;Before using all the methods please take a backup of destination clusters Table by using Snapshot method like,&lt;/P&gt;&lt;P&gt;On destination cluster,&lt;/P&gt;&lt;P&gt;=&amp;gt;hbase shell&lt;/P&gt;&lt;P&gt;=&amp;gt;snapshot "DEST_TABLE_NAME","SNAPSHOT_DEST_TABLE_NAME"&lt;/P&gt;&lt;P&gt;So that your data on DESTINATION cluster will not be lost. To keep your data safe on Destination clutser you can use this this method. After your use you can revert it back as,&lt;/P&gt;&lt;P&gt;=&amp;gt;hbase shell&lt;/P&gt;&lt;P&gt;=&amp;gt;disable "DEST_TABLE_NAME"&lt;/P&gt;&lt;P&gt;=&amp;gt;restore_snapshot "SNAPSHOT_DEST_TABLE_NAME"&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 20:04:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157253#M41003</guid>
      <dc:creator>nitinshk77</dc:creator>
      <dc:date>2016-09-19T20:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157254#M41004</link>
      <description>&lt;P&gt;In this if we copy the Hfiles manually from one Hbase cluster to another, in that case list command dispalys all the tables, But scanning a table does not shown any data. This is because i have not copied META table enteries. So is there a way to copy META table enteries to another hbase instance in a way that both the already exisiting table and new tables exist with their data.&lt;/P&gt;&lt;P&gt;,
&lt;/P&gt;&lt;P&gt;If we manually copy Hfiles from Hbase instance to another. In that case, list will display the tables but scan will not show the data because we have not copied META table. So is there a way to copy the enteries of MEta table also, in a way that new tables and already exisiting tables both are retained.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 23:34:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157254#M41004</guid>
      <dc:creator>priyankaajindal</dc:creator>
      <dc:date>2018-01-30T23:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: hbase table copy from one cluster to other</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157255#M41005</link>
      <description>&lt;P&gt;In this if we copy the Hfiles manually from one Hbase cluster to another, in that case list command dispalys all the tables, But scanning a table does not shown any data. This is because i have not copied META table enteries. So is there a way to copy META table enteries to another hbase instance in a way that both the already exisiting table and new tables exist with their data.&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;If we manually copy Hfiles from Hbase instance to another. In that case, list will display the tables but scan will not show the data because we have not copied META table. So is there a way to copy the enteries of MEta table also, in a way that new tables and already exisiting tables both are retained.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 23:34:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-table-copy-from-one-cluster-to-other/m-p/157255#M41005</guid>
      <dc:creator>priyankaajindal</dc:creator>
      <dc:date>2018-01-30T23:34:15Z</dc:date>
    </item>
  </channel>
</rss>

