Migrating from previous HBase versions
To migrate data from a previous HBase version, see Upgrading
Migrating to Amazon EMR version 7.4.0 or later
Note
Follow these guidelines if you're migrating from an EMR release earlier than 7.4.0 to a release greater than 7.3.0.
If you are currently running an EMR version with Amazon's Store File Tracking feature enabled, which is included in versions 6.2.0 to 7.3.0, and you want to upgrade to a version with OSS Store File Tracking, which is available on EMR versions later than 7.3.0, follow these steps:
In the existing cluster:
Disable the
hbase:storefile
table.Drop the
hbase:storefile
table.Flush
hbase:meta
.Wait for the metadata to be updated.
In the new cluster:
Set the same Amazon S3 directory as the root directory.
Start the cluster with the
DefaultStoreFileTracker
implementation:{ "Classification": "hbase-site", "Properties": { hbase.store.file-tracker.impl: "org.apache.hadoop.hbase.regionserver.storefiletracker.DefaultStoreFileTracker" }
At the table or column family level, use the following commands to change the store file tracker:
Change the table's or table column family's Store File Tracker:
hbase> change_sft 't1','FILE' hbase> change_sft 't2','cf1','FILE'
Change all of the table's Store File Tracker matching the given regular expression (regex):
hbase> change_sft_all 't.*','FILE' hbase> change_sft_all 'ns:.*','FILE' hbase> change_sft_all 'ns:t.*','FILE'