From 42d4e0ae99d162fde52902cb86e29f2c82a084c8 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. --- 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 883d00965f..3b7d8a8385 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -685,6 +685,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 dc9c4697c9..5c4156bfe1 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 10e1ca6de6..e89a90dfb0 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 void initializeMemberVariables() { .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