From 8f004fe4e0d479e26d0063427566edc1606bced5 Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Sun, 6 Jan 2019 10:24:29 -0800 Subject: [PATCH] YARN-9141. [Submarine] JobStatus outputs with system UTC clock, not local clock. (Zac Zhou via wangda) Change-Id: Ib2b17cf7860ddc9188f06498086de3326bc09519 --- .../apache/hadoop/yarn/submarine/common/api/JobStatus.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-submarine/src/main/java/org/apache/hadoop/yarn/submarine/common/api/JobStatus.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-submarine/src/main/java/org/apache/hadoop/yarn/submarine/common/api/JobStatus.java index 6e390f3dcc..0ba9de9f21 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-submarine/src/main/java/org/apache/hadoop/yarn/submarine/common/api/JobStatus.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-submarine/src/main/java/org/apache/hadoop/yarn/submarine/common/api/JobStatus.java @@ -18,7 +18,7 @@ package org.apache.hadoop.yarn.submarine.common.api; import java.io.PrintStream; -import java.time.Instant; +import java.time.LocalDateTime; import java.util.List; /** @@ -34,7 +34,7 @@ public class JobStatus { public void nicePrint(PrintStream out) { out.println( "Job Name=" + this.jobName + ", status=" + state.name() + " time=" - + Instant.now()); + + LocalDateTime.now()); if (JobState.isFinal(this.state)) { return; }