You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2009/08/01 00:18:08 UTC

[Hadoop Wiki] Update of "Hbase/HowToMigrate" by ClintMorgan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by ClintMorgan:
http://wiki.apache.org/hadoop/Hbase/HowToMigrate

The comment on the change is:
added small bit about migrating tableindexed tables

------------------------------------------------------------------------------
  Please read the below carefully.
  
  You can only migrate to 0.20.x from 0.19.x.  If you have an earlier hbase, you will need to install 0.19, migrate your old instance, and then install 0.20.x.
- 
- Migration has not been tested on transactional hbase installs or for indexed hbase installs.  It may just work.  It may not.
  
  This migration rewrites all data.  It will take a while.
  
@@ -97, +95 @@

  
  If it prints false, do a {{{bin/hbase fs -lsr /}}} on your hbase directory and figure out what hasn't been major compacted.  If a catalog table -- -ROOT- or .META. -- then use the above HRegion tool to compact.  Otherwise, start up 0.19 again, fire up shell and try major compact again.
  
+ ==== Migrating tableindexed tables (ITHBase) ====
+ The index schema location has changed formats from 0.19 to 0.20. To migrate indexed tables you must run a migration on 0.19. With hbase up, run
+ {{{$ ./bin/hbase org.apache.hadoop.hbase.client.tableindexed.migration.MoveIndexMetaData}}}
+ 
+ You should do this before you do the major compaction step above.
+ 
  
  ===== Can you back up your data? =====
  Migration has been tested but if you have sufficient space in hdfs to make a copy of your hbase rootdir, do so.  Just in case.  Use hdfs distcp.