YARN-9141. [Submarine] JobStatus outputs with system UTC clock, not local clock. (Zac Zhou via wangda)
Change-Id: Ib2b17cf7860ddc9188f06498086de3326bc09519 (cherry picked from commit 8f004fe4e0d479e26d0063427566edc1606bced5)
This commit is contained in:
parent
71bee05339
commit
1ad1ab5d7a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user