YARN-7099. ResourceHandlerModule.parseConfiguredCGroupPath only works for privileged yarn users. (Contributed by Miklos Szegedi via Yufei Gu)
This commit is contained in:
parent
02599bda04
commit
d5bc958279
|
@ -268,11 +268,11 @@ public class ResourceHandlerModule {
|
|||
// Collect the valid subsystem names
|
||||
cgroupList.retainAll(validCGroups);
|
||||
if (!cgroupList.isEmpty()) {
|
||||
if (candidate.isDirectory() && candidate.canWrite()) {
|
||||
if (candidate.isDirectory()) {
|
||||
pathSubsystemMappings.put(candidate.getAbsolutePath(), cgroupList);
|
||||
} else {
|
||||
LOG.warn("The following cgroup is not a directory or it is not"
|
||||
+ " writable" + candidate.getAbsolutePath());
|
||||
LOG.warn("The following cgroup is not a directory " +
|
||||
candidate.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue