public static String removeWALRootPath(Path path, final Configuration conf) throws IOException {
    Path root = getWALRootDir(conf);
    String pathStr = path.toString();
    // check that the path is absolute... it has the root path in it.
    if (!pathStr.startsWith(root.toString())) {
      return pathStr;
    }
    // if not, return as it is.
    return pathStr.substring(root.toString().length() + 1);// remove the "/" too.
  }
Checks for the presence of the WAL log root path (using the provided conf object) in the given
path. If it exists, this method removes it and returns the String representation of remaining
relative path.
@param path must not be null
@param conf must not be null
@return String representation of the remaining relative path
@throws IOException from underlying filesystem
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java