private static String[] getTempArchivesFromConf(Configuration conf) {
    String addedArchives = Utilities.getResourceFiles(conf, SessionState.ResourceType.ARCHIVE);
    if (StringUtils.isNotBlank(addedArchives)) {
      HiveConf.setVar(conf, ConfVars.HIVE_ADDED_ARCHIVES, addedArchives);
      return addedArchives.split(",");
    }
    return new String[0];
  }
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