YARN-9965. Fix NodeManager failing to start when Hdfs Auxillary Jar is set. Contributed by Prabhu Joseph.
This commit is contained in:
parent
77934bc07b
commit
516377bfa6
@ -351,7 +351,7 @@ public class AuxServices extends AbstractService
|
|||||||
FileStatus[] allSubDirs = localLFS.util().listStatus(nmAuxDir);
|
FileStatus[] allSubDirs = localLFS.util().listStatus(nmAuxDir);
|
||||||
for (FileStatus sub : allSubDirs) {
|
for (FileStatus sub : allSubDirs) {
|
||||||
if (sub.getPath().getName().equals(downloadDest.getName())) {
|
if (sub.getPath().getName().equals(downloadDest.getName())) {
|
||||||
return new Path(targetDirPath + Path.SEPARATOR + "*");
|
return targetDirPath;
|
||||||
} else {
|
} else {
|
||||||
if (sub.getPath().getName().contains(className) &&
|
if (sub.getPath().getName().contains(className) &&
|
||||||
!sub.getPath().getName().endsWith(DEL_SUFFIX)) {
|
!sub.getPath().getName().endsWith(DEL_SUFFIX)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user