diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/AuxServices.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/AuxServices.java index 74cd84f191..dacf79b0b4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/AuxServices.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/AuxServices.java @@ -351,7 +351,7 @@ public class AuxServices extends AbstractService FileStatus[] allSubDirs = localLFS.util().listStatus(nmAuxDir); for (FileStatus sub : allSubDirs) { if (sub.getPath().getName().equals(downloadDest.getName())) { - return new Path(targetDirPath + Path.SEPARATOR + "*"); + return targetDirPath; } else { if (sub.getPath().getName().contains(className) && !sub.getPath().getName().endsWith(DEL_SUFFIX)) {