public static void renameFile(FileSystem fs, Path src, Path dst) throws IOException {
    if (fs.exists(dst) && !fs.delete(dst, false)) {
      throw new IOException("Can not delete " + dst);
    }
    if (!fs.rename(src, dst)) {
      throw new IOException("Can not rename from " + src + " to " + dst);
    }
  }
Runs through the HBase rootdir and checks how many stores for each table have more than one
file in them. Checks -ROOT- and hbase:meta too. The total percentage across all tables is
stored under the special key "-TOTAL-".
@param fs           The file system to use
@param hbaseRootDir The root directory to scan
@return A map for each table and its percentage (never null)
@throws IOException When scanning the directory fails
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java