private void addHdfsResource(Configuration conf, List<LocalResource> tmpResources,
                               LocalResourceType type, String[] files) throws IOException {
    for (String file: files) {
      if (StringUtils.isNotBlank(file)) {
        Path dest = new Path(file);
        FileSystem destFS = dest.getFileSystem(conf);
        LocalResource localResource = createLocalResource(destFS, dest, type,
            LocalResourceVisibility.PRIVATE);
        tmpResources.add(localResource);
      }
    }
  }
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