YARN-9141. [Submarine] JobStatus outputs with system UTC clock, not local clock. (Zac Zhou via wangda)
Change-Id: Ib2b17cf7860ddc9188f06498086de3326bc09519
This commit is contained in:
parent
650b9cbe16
commit
8f004fe4e0
@ -18,7 +18,7 @@
|
|||||||
package org.apache.hadoop.yarn.submarine.common.api;
|
package org.apache.hadoop.yarn.submarine.common.api;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
import java.time.Instant;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -34,7 +34,7 @@ public class JobStatus {
|
|||||||
public void nicePrint(PrintStream out) {
|
public void nicePrint(PrintStream out) {
|
||||||
out.println(
|
out.println(
|
||||||
"Job Name=" + this.jobName + ", status=" + state.name() + " time="
|
"Job Name=" + this.jobName + ", status=" + state.name() + " time="
|
||||||
+ Instant.now());
|
+ LocalDateTime.now());
|
||||||
if (JobState.isFinal(this.state)) {
|
if (JobState.isFinal(this.state)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user