Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5874

When 'fs.default.name' not configured, the hbck tool and Merge tool throw IllegalArgumentException.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.6
    • 0.92.2, 0.94.1
    • hbck
    • None
    • Reviewed

    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)

      Attachments

        1. HBASE-5874-0.90.patch
          1 kB
          fulin wang
        2. HBASE-5874-trunk.patch
          1 kB
          fulin wang
        3. HBASE-5874-0.90-v2.patch
          1 kB
          fulin wang
        4. HBASE-5874-trunk-v2.patch
          1 kB
          fulin wang
        5. HBASE-5874-trunk-v3.patch
          2 kB
          fulin wang

        Activity

          People

            fulin fulin wang
            fulin fulin wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: