It can't find hdfs. Try putting an hadoop-site.xml on the scripts CLASSPATH (symlink hadoop-site.xml into hbase/conf).
There is a tool now in head of 0.19 trunk that will tell you if your hbase is major compacted, yes or no. Its described in the cited wiki page on migration. St.Ack On Wed, Jul 29, 2009 at 3:34 PM, Clint Morgan <[email protected]> wrote: > I'm trying to migrate some data from 0.19 and experiencing some pain: > > I tried running HBaseAdmin.majorCompact() over all the tables, including > catalogs. But when I try to migrate afterward I get error about root not > being compacted. I had called majorCompact(-ROOT-) but never see it being > compacted in the logs. > > Then I try to follow the instructions at > http://wiki.apache.org/hadoop/Hbase/HowToMigrate and run > > ./bin/hbase org.apache.hadoop.hbase.regionserver.HRegion > hdfs:///localhost:7001/opt/troove/data/hadoop/hbase/-ROOT- major-compact > > (on head of branches/0.19) and get: > > clint-morgan:hbase-clean clint.morgan$ ./bin/hbase > org.apache.hadoop.hbase.regionserver.HRegion > hdfs:///localhost:7001/opt/troove/data/hadoop/hbase/-ROOT- major-compact > 09/07/29 15:30:30 INFO regionserver.HLog: HLog configuration: > blocksize=33554432, maxlogentries=100000, flushlogentries=100, > optionallogflushinternal=10000ms > 09/07/29 15:30:30 INFO regionserver.HLog: New log writer: > /tmp/hlog-ROOT-1248906630690/hlog.dat.1248906630698 > 09/07/29 15:30:30 INFO regionserver.HRegion: Closed -ROOT-,,0 > Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS: > > hdfs:/localhost:7001/opt/troove/data/hadoop/hbase/-ROOT-/70236052/info/mapfiles, > expected: file:/// > at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:322) > at > > org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:52) > at > > org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:416) > at > > org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:244) > at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:651) > at org.apache.hadoop.hbase.regionserver.HStore.checkdir(HStore.java:272) > at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:219) > at > > org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:1777) > at > org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:288) > at > > org.apache.hadoop.hbase.regionserver.HRegion.processTable(HRegion.java:2709) > at org.apache.hadoop.hbase.regionserver.HRegion.main(HRegion.java:2765) > > Any idea what is going wrong? > -clint >
