From a52f5672a2f2a318c6e76a965c809250f340c5e8 Mon Sep 17 00:00:00 2001 From: Prabhu Joseph Date: Thu, 17 Jun 2021 11:56:45 +0530 Subject: [PATCH] YARN-10810. YARN Native Service Definition is not backward compatible ISSUE: Hive LLAP fails to check application status from Yarn ServiceClient (RM). YARN Native Service Spec PlacementScope value was NODE in hadoop-3.1 version but got changed to node in hadoop-3.3. This causes older ServiceClient (hadoop-3.1) to fail while getting the status from new ApiServer (hadoop-3.3). This is due to the jackson upgrade happened in hadoop-3.3. The older jackson serializes into "node" in ServiceClient (Hive LLAP) whereas newer jackson deserializes into "NODE" in ApiServer. --- .../apache/hadoop/yarn/service/api/records/PlacementScope.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/PlacementScope.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/PlacementScope.java index 01b1d5dedf3..bdc690e8eae 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/PlacementScope.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/PlacementScope.java @@ -33,7 +33,7 @@ @ApiModel(description = "The scope of placement for the containers of a " + "component.") public enum PlacementScope { - NODE(PlacementConstraints.NODE), RACK(PlacementConstraints.RACK); + NODE("NODE"), RACK("RACK"); private String value; -- 2.31.1.windows.1