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; }