YARN-9965. Fix NodeManager failing to start when Hdfs Auxillary Jar is set. Contributed by Prabhu Joseph.

This commit is contained in:
Abhishek Modi 2019-11-11 16:01:44 +05:30
parent 77934bc07b
commit 516377bfa6
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {