From 87adffe8778fa815f1c5890a5ae95d2557ce99f7 Mon Sep 17 00:00:00 2001 From: Sanford Ryza Date: Wed, 30 Oct 2013 06:32:53 +0000 Subject: [PATCH] YARN-1306. Clean up hadoop-sls sample-conf according to YARN-1228 (Wei Yan via Sandy Ryza) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1536982 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/sample-conf/capacity-scheduler.xml | 7 --- .../sample-conf/fair-scheduler-allocation.xml | 50 ----------------- .../src/main/sample-conf/fair-scheduler.xml | 53 ++++++++++--------- .../src/main/sample-conf/yarn-site.xml | 20 +++++++ hadoop-yarn-project/CHANGES.txt | 3 ++ 5 files changed, 51 insertions(+), 82 deletions(-) delete mode 100644 hadoop-tools/hadoop-sls/src/main/sample-conf/fair-scheduler-allocation.xml diff --git a/hadoop-tools/hadoop-sls/src/main/sample-conf/capacity-scheduler.xml b/hadoop-tools/hadoop-sls/src/main/sample-conf/capacity-scheduler.xml index b74c14a6cd8..d9ae8ec78c5 100644 --- a/hadoop-tools/hadoop-sls/src/main/sample-conf/capacity-scheduler.xml +++ b/hadoop-tools/hadoop-sls/src/main/sample-conf/capacity-scheduler.xml @@ -57,11 +57,4 @@ yarn.scheduler.capacity.root.sls_queue_3.maximum-capacity 100 - - - yarn.scheduler.capacity.maximum-applications - 1000 - Maximum number of applications in the system which - can be concurrently active both running and pending - diff --git a/hadoop-tools/hadoop-sls/src/main/sample-conf/fair-scheduler-allocation.xml b/hadoop-tools/hadoop-sls/src/main/sample-conf/fair-scheduler-allocation.xml deleted file mode 100644 index 8756a6ac815..00000000000 --- a/hadoop-tools/hadoop-sls/src/main/sample-conf/fair-scheduler-allocation.xml +++ /dev/null @@ -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/main/sample-conf/fair-scheduler.xml b/hadoop-tools/hadoop-sls/src/main/sample-conf/fair-scheduler.xml index 9d315c1f27c..fa10359c501 100644 --- a/hadoop-tools/hadoop-sls/src/main/sample-conf/fair-scheduler.xml +++ b/hadoop-tools/hadoop-sls/src/main/sample-conf/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 - 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/main/sample-conf/yarn-site.xml b/hadoop-tools/hadoop-sls/src/main/sample-conf/yarn-site.xml index d59d85fd968..6ab11573499 100644 --- a/hadoop-tools/hadoop-sls/src/main/sample-conf/yarn-site.xml +++ b/hadoop-tools/hadoop-sls/src/main/sample-conf/yarn-site.xml @@ -57,4 +57,24 @@ false + + yarn.scheduler.capacity.maximum-applications + 1000 + Maximum number of applications in the system which + can be concurrently active both running and pending + + + + 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 e29873162ed..20dc9088ea4 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -70,6 +70,9 @@ Release 2.3.0 - UNRELEASED HADOOP-9598. Improve code coverage of RMAdminCLI (Aleksey Gorshkov and Andrey Klochkov via jeagles) + YARN-1306. Clean up hadoop-sls sample-conf according to YARN-1228 (Wei Yan + via Sandy Ryza) + OPTIMIZATIONS BUG FIXES