From 4f8c7f819cf306d6a12f2d3ce2ddf151c1a276f4 Mon Sep 17 00:00:00 2001 From: Robert Kanter Date: Wed, 28 Sep 2016 15:56:03 -0700 Subject: [PATCH] YARN-5400. addendum patch to fix JDK 7 issue --- .../yarn/server/resourcemanager/recovery/ZKRMStateStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/ZKRMStateStore.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/ZKRMStateStore.java index 51bb74df636..dc76c3ee172 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/ZKRMStateStore.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/ZKRMStateStore.java @@ -412,7 +412,8 @@ public class ZKRMStateStore extends RMStateStore { ReservationAllocationStateProto.parseFrom(reservationData); if (!rmState.getReservationState().containsKey(planName)) { - rmState.getReservationState().put(planName, new HashMap<>()); + rmState.getReservationState().put(planName, + new HashMap()); } ReservationId reservationId =