Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7806 Isolate the FileSystem calls
  3. HBASE-8006

use FSUtils to get/set hbase.rootdir

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.0
    • regionserver
    • None

    Description

      We have different ways around the code to get the root dir

      this.conf.get("hbase.rootdir")
      new Path(conf.get(HConstants.HBASE_DIR));
      fs.makeQualified(new Path(this.c.get(HConstants.HBASE_DIR)));
      FSUtils.getRootDir(conf)
      

      also we have lots of places where we have this set fs.default

      this.conf.set("fs.default.name", fs.getUri().toString());
      this.conf.set("fs.defaultFS", fs.getUri().toString());
      

      replace everything to use the FSUtils and have one single way to do this stuff

      Attachments

        1. HBASE-8006-v0.patch
          40 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: