public Map<String, LocalResource> localizeTempFiles(String hdfsDirPathStr, Configuration conf,
      String[] inputOutputJars, String[] skipJars) throws IOException {
    if (inputOutputJars == null) {
      return null;
    }
    return addTempResources(conf, hdfsDirPathStr, LocalResourceType.FILE, inputOutputJars, skipJars);
  }
Localizes files, archives and jars from a provided array of names.
@param hdfsDirPathStr Destination directory in HDFS.
@param conf Configuration.
@param inputOutputJars The file names to localize.
@return Map&lt;String, LocalResource&gt; (srcPath, local resources) to add to execution
@throws IOException when hdfs operation fails.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java