hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Trivial Update of "Hbase/HowToMigrate" by stack
Date Fri, 24 Jul 2009 05:35:01 GMT
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 stack:
http://wiki.apache.org/hadoop/Hbase/HowToMigrate

------------------------------------------------------------------------------
  
  I had to copy the hadoop-site.xml to a location where it would be picked up by the above
script -- e.g. from my hadoop 0.19 install to my {{{$HBASE_HOME/conf}}} -- so the above script
could find the right HDFS otherwise it was going against local filesystem.
  
+ In the head of 0.19 is a tool that will tell you if you have successfully major compacted
your 0.19 data:
+ 
+ {{{$ ./bin/hbase org.apache.hadoop.hbase.util.FSUtils}}}
+ 
+ It will print out:
+ 
+ {{{majorCompacted=true}}}
+ 
+ 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.
+ 
+ 
  ===== 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.
  

Mime
View raw message