public static boolean mkdir(FileSystem fs, Path f) throws IOException {
    LOG.info("Creating directory if it doesn't exist: " + f);
    return fs.mkdirs(f);
  }
Creates the directory and all necessary parent directories.
@param fs FileSystem to use
@param f path to create.
@return true if directory created successfully.  False otherwise, including if it exists.
@throws IOException exception in creating the directory
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java