String applicationDir = SpringYarnBootUtils.resolveApplicationdir(syp);
localizer
.stagingDirectory(syp.getStagingDir());
LocalResourcesHdfsConfigurer withHdfs = localizer.withHdfs();
for (Entry e : localResourcesSelector.select(applicationDir != null ? applicationDir : "/")) {
withHdfs.hdfs(e.getPath(), e.getType(), applicationDir == null);
}
if (syap.getContainercluster() != null && localResourcesSelector instanceof MultiLocalResourcesSelector && syap.getContainercluster().getClusters() != null) {
MultiLocalResourcesSelector selector = ((MultiLocalResourcesSelector)localResourcesSelector);
for (java.util.Map.Entry<String, ContainerClustersProperties> entry : syap.getContainercluster().getClusters().entrySet()) {