YARN-7285. ContainerExecutor always launches with priorities due to yarn-default property. Contributed by Jason Lowe.
This commit is contained in:
parent
7e76f85bc6
commit
d0046bb5c6
|
@ -1869,10 +1869,10 @@
|
|||
<property>
|
||||
<description>
|
||||
Adjustment to the container OS scheduling priority. In Linux, passed
|
||||
directly to the nice command.
|
||||
directly to the nice command. If unspecified then containers are launched
|
||||
without any explicit OS priority.
|
||||
</description>
|
||||
<name>yarn.nodemanager.container-executor.os.sched.priority.adjustment</name>
|
||||
<value>0</value>
|
||||
</property>
|
||||
|
||||
<property>
|
||||
|
|
|
@ -247,9 +247,6 @@ public class TestLinuxContainerExecutorWithMocks {
|
|||
// make sure the command doesn't contain the nice -n since priority
|
||||
// not specified
|
||||
List<String> command = new ArrayList<String>();
|
||||
Configuration conf = mockExec.getConf();
|
||||
conf.unset(YarnConfiguration.NM_CONTAINER_EXECUTOR_SCHED_PRIORITY);
|
||||
mockExec.setConf(conf);
|
||||
mockExec.addSchedPriorityCommand(command);
|
||||
assertEquals("addSchedPriority should be empty", 0, command.size());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue