private static void ensureDirectory(File resourceDir) {
    try {
      FileUtils.forceMkdir(resourceDir);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
@param path
@return URI corresponding to the path.
ql/src/java/org/apache/hadoop/hive/ql/util/ResourceDownloader.java