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
|
// Collect the valid subsystem names
|
||||||
cgroupList.retainAll(validCGroups);
|
cgroupList.retainAll(validCGroups);
|
||||||
if (!cgroupList.isEmpty()) {
|
if (!cgroupList.isEmpty()) {
|
||||||
if (candidate.isDirectory() && candidate.canWrite()) {
|
if (candidate.isDirectory()) {
|
||||||
pathSubsystemMappings.put(candidate.getAbsolutePath(), cgroupList);
|
pathSubsystemMappings.put(candidate.getAbsolutePath(), cgroupList);
|
||||||
} else {
|
} else {
|
||||||
LOG.warn("The following cgroup is not a directory or it is not"
|
LOG.warn("The following cgroup is not a directory " +
|
||||||
+ " writable" + candidate.getAbsolutePath());
|
candidate.getAbsolutePath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue