public static Path getWALRootDir(final Configuration c) throws IOException {
    Path p = new Path(c.get(HBASE_WAL_DIR, c.get(HConstants.HBASE_DIR)));
    if (!isValidWALRootDir(p, c)) {
      return getRootDir(c);
    }
    FileSystem fs = p.getFileSystem(c);
    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());
  }
Get the path for the root directory for WAL data
@param c configuration
@return {@link Path} to hbase log root directory: e.g. {@value HBASE_WAL_DIR} from
        configuration as a qualified Path. Defaults to HBase root dir.
@throws IOException e
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java