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

FSUtils.create() fail with ViewFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.94.7, 0.95.0
    • 0.98.0, 0.94.8, 0.95.2
    • None
    • None

    Description

      FSUtils.create() and SequenceFileLogWriter are using fs.getDefaultReplication() and fs.getDefaultBlockSize() which is deprecated and in case of ViewFS throws an exception. replace that with the fs.getDefault*(path)

      @Override
      public long getDefaultBlockSize() {
        throw new NotInMountpointException("getDefaultBlockSize");
      }
      
      @Override
      public short getDefaultReplication() {
        throw new NotInMountpointException("getDefaultReplication");
      }
      
      exception in thread "main" org.apache.hadoop.fs.viewfs.NotInMountpointException: getDefaultReplication on empty path is invalid
      	at org.apache.hadoop.fs.viewfs.ViewFileSystem.getDefaultReplication(ViewFileSystem.java:508)
      	at org.apache.hadoop.hbase.util.FSUtils.create(FSUtils.java:156)
      

      Attachments

        1. HBASE-8516.patch
          11 kB
          Matteo Bertozzi
        2. HBASE-8516-94.patch
          10 kB
          Matteo Bertozzi
        3. HBASE-8516-v1.patch
          11 kB
          Matteo Bertozzi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: