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

MasterFS doesn't set configuration for internal FileSystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.3
    • 0.94.4
    • master, test
    • None
    • Reviewed

    Description

      The call stack ends on HFileArchiver.archveRegion, which uses fs.getConf() to get the configuration object. This returns a different conf object (not the one used in MasterFileSystem), which may have the root file system as file (depending on the test environment).

      from META
      2012-12-20 13:46:09,540 DEBUG [MASTER_TABLE_OPERATIONS-p0122.mtv.cloudera.com,53027,1356039958141-0] backup.HFileArchiver(91): ARCHIVING region file:/tmp/hbase-jenkins/hbase/tableB/1c0ce809562dcefde6086d4f8549ed8f
      2012-12-20 13:46:09,540 DEBUG [MASTER_TABLE_OPERATIONS-p0122.mtv.cloudera.com,53027,1356039958141-0] backup.HFileArchiver(109): Have an archive directory, preparing to move files
      2012-12-20 13:46:09,543 ERROR [MASTER_TABLE_OPERATIONS-p0122.mtv.cloudera.com,53027,1356039958141-0] executor.EventHandler(174): Caught throwable while processing event C_M_DELETE_TABLE
      java.lang.IllegalArgumentException: Wrong FS: file:/tmp/hbase-jenkins/hbase/tableB/1c0ce809562dcefde6086d4f8549ed8f, expected: hdfs://localhost:39594
      	at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:550)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:170)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:401)
      	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1376)
      	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1416)
      	at org.apache.hadoop.hbase.util.FSUtils.listStatus(FSUtils.java:1164)
      	at org.apache.hadoop.hbase.backup.HFileArchiver.archiveRegion(HFileArchiver.java:122)
      	at org.apache.hadoop.hbase.backup.HFileArchiver.archiveRegion(HFileArchiver.java:72)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.deleteRegion(MasterFileSystem.java:444)
      	at org.apache.hadoop.hbase.master.handler.DeleteTableHandler.handleTableOperation(DeleteTableHandler.java:71)
      	at org.apache.hadoop.hbase.master.handler.TableEventHandler.process(TableEventHandler.java:96)
      

      Attachments

        1. HBASE-7422.patch
          0.7 kB
          Himanshu Vashishtha
        2. HBASE-7422-v2.patch
          3 kB
          Himanshu Vashishtha

        Issue Links

          Activity

            People

              v.himanshu Himanshu Vashishtha
              v.himanshu Himanshu Vashishtha
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: