From 0e7c88347e1c0b558866160d8c75d3b8ad3e6e1b Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Mon, 27 Jul 2015 11:43:25 +0900 Subject: [PATCH] YARN-3958. TestYarnConfigurationFields should be moved to hadoop-yarn-api module. Contributed by Varun Saxena. (cherry picked from commit 42d4e0ae99d162fde52902cb86e29f2c82a084c8) --- hadoop-yarn-project/CHANGES.txt | 3 ++ .../hadoop-yarn/hadoop-yarn-api/pom.xml | 34 +++++++++++++++++++ .../conf/TestYarnConfigurationFields.java | 12 +++---- 3 files changed, 43 insertions(+), 6 deletions(-) rename hadoop-yarn-project/hadoop-yarn/{hadoop-yarn-common => hadoop-yarn-api}/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java (91%) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index c3f20159c57..69267318db4 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -633,6 +633,9 @@ Release 2.8.0 - UNRELEASED YARN-3973. Recent changes to application priority management break reservation system from YARN-1051. (Carlo Curino via wangda) + YARN-3958. TestYarnConfigurationFields should be moved to hadoop-yarn-api + module. (Varun Saxena via aajisaka) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/pom.xml index a8729302085..9a08a7b00cc 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/pom.xml @@ -62,9 +62,31 @@ com.google.protobuf protobuf-java + + + org.apache.hadoop + hadoop-common + test-jar + test + + + + junit + junit + test + + + + ${basedir}/../hadoop-yarn-common/src/main/resources + + yarn-default.xml + + false + + org.apache.hadoop @@ -105,6 +127,18 @@ + + + maven-jar-plugin + + + + test-jar + + test-compile + + + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java similarity index 91% rename from hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java rename to hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java index 10e1ca6de66..e89a90dfb0b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/test/java/org/apache/hadoop/yarn/conf/TestYarnConfigurationFields.java @@ -64,22 +64,22 @@ public class TestYarnConfigurationFields extends TestConfigurationFieldsBase { .add(YarnConfiguration.DEFAULT_RM_SCHEDULER); configurationPropsToSkipCompare .add(YarnConfiguration - .YARN_SECURITY_SERVICE_AUTHORIZATION_APPLICATIONCLIENT_PROTOCOL); + .YARN_SECURITY_SERVICE_AUTHORIZATION_APPLICATIONCLIENT_PROTOCOL); configurationPropsToSkipCompare .add(YarnConfiguration - .YARN_SECURITY_SERVICE_AUTHORIZATION_APPLICATIONMASTER_PROTOCOL); + .YARN_SECURITY_SERVICE_AUTHORIZATION_APPLICATIONMASTER_PROTOCOL); configurationPropsToSkipCompare .add(YarnConfiguration - .YARN_SECURITY_SERVICE_AUTHORIZATION_CONTAINER_MANAGEMENT_PROTOCOL); + .YARN_SECURITY_SERVICE_AUTHORIZATION_CONTAINER_MANAGEMENT_PROTOCOL); configurationPropsToSkipCompare .add(YarnConfiguration - .YARN_SECURITY_SERVICE_AUTHORIZATION_RESOURCE_LOCALIZER); + .YARN_SECURITY_SERVICE_AUTHORIZATION_RESOURCE_LOCALIZER); configurationPropsToSkipCompare .add(YarnConfiguration - .YARN_SECURITY_SERVICE_AUTHORIZATION_RESOURCEMANAGER_ADMINISTRATION_PROTOCOL); + .YARN_SECURITY_SERVICE_AUTHORIZATION_RESOURCEMANAGER_ADMINISTRATION_PROTOCOL); configurationPropsToSkipCompare .add(YarnConfiguration - .YARN_SECURITY_SERVICE_AUTHORIZATION_RESOURCETRACKER_PROTOCOL); + .YARN_SECURITY_SERVICE_AUTHORIZATION_RESOURCETRACKER_PROTOCOL); configurationPropsToSkipCompare .add(YarnConfiguration.DEFAULT_SCM_STORE_CLASS); configurationPropsToSkipCompare