You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/HistoryViewer.java
+21-22Lines changed: 21 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -602,70 +602,69 @@ public SummarizedJob(JobInfo job) {
602
602
for (JobHistoryParser.TaskAttemptInfoattempt : attempts.values()) {
603
603
longstartTime = attempt.getStartTime();
604
604
longfinishTime = attempt.getFinishTime();
605
-
if (attempt.getTaskType().equals(TaskType.MAP)) {
605
+
if (TaskType.MAP.equals(attempt.getTaskType())) {
606
606
if (mapStarted== 0 || mapStarted > startTime) {
607
607
mapStarted = startTime;
608
608
}
609
609
if (mapFinished < finishTime) {
610
610
mapFinished = finishTime;
611
611
}
612
612
totalMaps++;
613
-
if (attempt.getTaskStatus().equals
614
-
(TaskStatus.State.FAILED.toString())) {
613
+
if (TaskStatus.State.FAILED.toString().equals(attempt.getTaskStatus())) {
0 commit comments