From 156b9f2e88fdd3ab840127400637a653d08cb0d8 Mon Sep 17 00:00:00 2001 From: Sanford Ryza Date: Fri, 11 Oct 2013 21:18:48 +0000 Subject: [PATCH] YARN-1300. SLS tests fail because conf puts YARN properties in fair-scheduler.xml (Ted Yu via Sandy Ryza) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1531423 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/fair-scheduler-allocation.xml | 50 ----------------- .../src/test/resources/fair-scheduler.xml | 53 ++++++++++--------- .../src/test/resources/yarn-site.xml | 13 +++++ hadoop-yarn-project/CHANGES.txt | 3 ++ 4 files changed, 44 insertions(+), 75 deletions(-) diff --git a/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler-allocation.xml b/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler-allocation.xml index 8756a6ac815..e69de29bb2d 100644 --- a/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler-allocation.xml +++ b/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler-allocation.xml @@ -1,50 +0,0 @@ - - - - - - - - - 1000 - - 1000 - - 1024 mb, 1 vcores - fair - 0.25 - 2 - - - 1024 mb, 1 vcores - fair - 0.25 - 2 - - - 1024 mb, 1 vcores - 0.5 - fair - 2 - - diff --git a/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler.xml b/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler.xml index 12cf81dd682..fa10359c501 100644 --- a/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler.xml +++ b/hadoop-tools/hadoop-sls/src/test/resources/fair-scheduler.xml @@ -20,28 +20,31 @@ The documentation also includes a sample config file. --> - - - Absolute path to allocation file. An allocation file is an XML - manifest describing queues and their properties, in addition to certain - policy defaults. This file must be in XML format as described in - http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/FairScheduler.html. - - yarn.scheduler.fair.allocation.file - src/test/resources/fair-scheduler-allocation.xml - - - - Whether to use preemption. Note that preemption is experimental - in the current version. Defaults to false. - yarn.scheduler.fair.preemption - true - - - - Whether to allow multiple container assignments in one - heartbeat. Defaults to false. - yarn.scheduler.fair.assignmultiple - true - - + + + + 1000 + + 1000 + + 1024 mb, 1 vcores + fair + 0.25 + 2 + + + 1024 mb, 1 vcores + fair + 0.25 + 2 + + + 1024 mb, 1 vcores + 0.5 + fair + 2 + + diff --git a/hadoop-tools/hadoop-sls/src/test/resources/yarn-site.xml b/hadoop-tools/hadoop-sls/src/test/resources/yarn-site.xml index 8ab23b9b918..f6c6a4a983d 100644 --- a/hadoop-tools/hadoop-sls/src/test/resources/yarn-site.xml +++ b/hadoop-tools/hadoop-sls/src/test/resources/yarn-site.xml @@ -55,4 +55,17 @@ false + + Whether to use preemption. Note that preemption is experimental + in the current version. Defaults to false. + yarn.scheduler.fair.preemption + true + + + + Whether to allow multiple container assignments in one + heartbeat. Defaults to false. + yarn.scheduler.fair.assignmultiple + true + diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index e50461948d9..98487c9e0f6 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -78,6 +78,9 @@ Release 2.3.0 - UNRELEASED YARN-1268. TestFairScheduler.testContinuousScheduling is flaky (Sandy Ryza) + YARN-1300. SLS tests fail because conf puts YARN properties in + fair-scheduler.xml (Ted Yu via Sandy Ryza) + Release 2.2.1 - UNRELEASED INCOMPATIBLE CHANGES