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

WrongFS using HRegionInfo.getTableDesc() and different fs for hbase.root and fs.defaultFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.2, 0.94.1, 0.95.2
    • 0.94.2
    • None
    • None
    • Reviewed

    Description

      Calling HRegionInfo.getTableDesc() with different fs schema for hbase.root and fs.defaultFS raises "IllegalArgumentException: Wrong FS" exception.

      HRegionInfo.getTableDesc() is called only by bin/region_mover.rb to get the table name and can be easily replaced, getTableDesc() is also deprecated.

      The main problem is that getTableDesc() doesn't replace fs.defaultFS with hbase.root as all the other hbase code (all the code does this, except getTableDesc)

      Configuration c = HBaseConfiguration.create();
      c.set("fs.defaultFS", c.get(HConstants.HBASE_DIR));
      c.set("fs.default.name", c.get(HConstants.HBASE_DIR));
      

      Attachments

        1. HBASE-6927-v0.patch
          1 kB
          Matteo Bertozzi
        2. 6927.094.txt
          1 kB
          Michael Stack

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: