Description
The HBase do not configure the 'fs.default.name' attribute, the hbck tool and Merge tool throw IllegalArgumentException.
the hbck tool and Merge tool, we should add 'fs.default.name' attriubte to the code.
hbck exception:
Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS: hdfs://160.176.0.101:9000/hbase/.META./1028785192/.regioninfo, expected: file:///
at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:412)
at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:59)
at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:382)
at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:285)
at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:128)
at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:301)
at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:489)
at org.apache.hadoop.hbase.util.HBaseFsck.loadHdfsRegioninfo(HBaseFsck.java:565)
at org.apache.hadoop.hbase.util.HBaseFsck.loadHdfsRegionInfos(HBaseFsck.java:596)
at org.apache.hadoop.hbase.util.HBaseFsck.onlineConsistencyRepair(HBaseFsck.java:332)
at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(HBaseFsck.java:360)
at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:2907)
Merge exception:
[2012-05-05 10:48:24,830] [ERROR] [main] [org.apache.hadoop.hbase.util.Merge 381] exiting due to error
java.lang.IllegalArgumentException: Wrong FS: hdfs://160.176.0.101:9000/hbase/.META./1028785192/.regioninfo, expected: file:///
at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:412)
at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:59)
at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:382)
at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:285)
at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:823)
at org.apache.hadoop.hbase.regionserver.HRegion.checkRegioninfoOnFilesystem(HRegion.java:415)
at org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:340)
at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:2679)
at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:2665)
at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:2634)
at org.apache.hadoop.hbase.util.MetaUtils.openMetaRegion(MetaUtils.java:276)
at org.apache.hadoop.hbase.util.MetaUtils.scanMetaRegion(MetaUtils.java:261)
at org.apache.hadoop.hbase.util.Merge.run(Merge.java:115)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.hbase.util.Merge.main(Merge.java:379)