public static Path makeAbsolute(FileSystem fileSystem, Path path) throws IOException {
    if (path.isAbsolute()) {
      return path;
    } else {
      return new Path(fileSystem.getWorkingDirectory(), path);
    }
  }
Creates the directory and all necessary parent directories.
@param fs FileSystem to use
@param f path to create.
@param conf Hive configuration
@return true if directory created successfully.  False otherwise, including if it exists.
@throws IOException exception in creating the directory
common/src/java/org/apache/hadoop/hive/common/FileUtils.java