private static String[] getHdfsTempFilesFromConf(Configuration conf) {
    String addedFiles = Utilities.getHdfsResourceFiles(conf, SessionState.ResourceType.FILE);
    String addedJars = Utilities.getHdfsResourceFiles(conf, SessionState.ResourceType.JAR);
    String allFiles = addedJars + "," + addedFiles;
    return allFiles.split(",");
  }
Localizes files, archives and jars the user has instructed us
to provide on the cluster as resources for execution.

@param conf
@return List&lt;LocalResource&gt; local resources to add to execution
@throws IOException when hdfs operation fails
@throws LoginException when getDefaultDestDir fails with the same exception
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java