YARN-6799. Remove the duplicated code in CGroupsHandlerImp.java. (Contributed by Weiyuan via Yufei Gu)
(cherry picked from commit 5ab21dfe9c
)
This commit is contained in:
parent
02ae3f8202
commit
416a44004f
|
@ -367,17 +367,6 @@ class CGroupsHandlerImpl implements CGroupsHandler {
|
|||
if (enableCGroupMount) {
|
||||
// We have a controller that needs to be mounted
|
||||
mountCGroupController(controller);
|
||||
} else {
|
||||
String controllerPath = getControllerPath(controller);
|
||||
|
||||
if (controllerPath == null) {
|
||||
throw new ResourceHandlerException(
|
||||
String.format("Controller %s not mounted."
|
||||
+ " You either need to mount it with %s"
|
||||
+ " or mount cgroups before launching Yarn",
|
||||
controller.getName(), YarnConfiguration.
|
||||
NM_LINUX_CONTAINER_CGROUPS_MOUNT));
|
||||
}
|
||||
}
|
||||
|
||||
// We are working with a pre-mounted contoller
|
||||
|
|
Loading…
Reference in New Issue