From 4c5d88e230fa7adbb4a041c9a33bea2ef5a36fd3 Mon Sep 17 00:00:00 2001 From: Eric Badger Date: Mon, 21 Dec 2020 23:10:31 +0000 Subject: [PATCH] YARN-10540. Node page is broken in YARN UI1 and UI2 including RMWebService api for nodes. Contributed by Jim Brennan. --- .../yarn/server/nodemanager/NodeResourceMonitorImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeResourceMonitorImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeResourceMonitorImpl.java index d489835586..c39e52ede7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeResourceMonitorImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeResourceMonitorImpl.java @@ -47,8 +47,8 @@ public class NodeResourceMonitorImpl extends AbstractService implements private ResourceCalculatorPlugin resourceCalculatorPlugin; /** Current resource utilization of the node. */ - private ResourceUtilization nodeUtilization; - + private ResourceUtilization nodeUtilization = + ResourceUtilization.newInstance(0, 0, 0f); private Context nmContext; /**