From commits-return-5933-archive-asf-public=cust-asf.ponee.io@tez.apache.org Tue Feb 19 17:22:00 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BAE6618060E for ; Tue, 19 Feb 2019 18:21:59 +0100 (CET) Received: (qmail 50207 invoked by uid 500); 19 Feb 2019 17:21:58 -0000 Mailing-List: contact commits-help@tez.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.apache.org Delivered-To: mailing list commits@tez.apache.org Received: (qmail 50198 invoked by uid 99); 19 Feb 2019 17:21:58 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2019 17:21:58 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 352418517D; Tue, 19 Feb 2019 17:21:58 +0000 (UTC) Date: Tue, 19 Feb 2019 17:21:58 +0000 To: "commits@tez.apache.org" Subject: [tez] branch master updated: TEZ-4035. Tez master breaks with YARN 3.2.0 ApplicationReport API change (jeagles) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155059691801.20282.16712725798016698963@gitbox.apache.org> From: jeagles@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: tez X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: ff999d8156a345503f5e3d680a36d6a95186bf79 X-Git-Newrev: 4876dc26ec2a1c365be9e5cc76a016ae715d9caa X-Git-Rev: 4876dc26ec2a1c365be9e5cc76a016ae715d9caa X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. jeagles pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tez.git The following commit(s) were added to refs/heads/master by this push: new 4876dc2 TEZ-4035. Tez master breaks with YARN 3.2.0 ApplicationReport API change (jeagles) 4876dc2 is described below commit 4876dc26ec2a1c365be9e5cc76a016ae715d9caa Author: Jonathan Eagles AuthorDate: Tue Feb 19 11:17:15 2019 -0600 TEZ-4035. Tez master breaks with YARN 3.2.0 ApplicationReport API change (jeagles) --- .../java/org/apache/tez/mapreduce/client/NotRunningJob.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/client/NotRunningJob.java b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/client/NotRunningJob.java index e178948..6cd9236 100644 --- a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/client/NotRunningJob.java +++ b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/client/NotRunningJob.java @@ -84,11 +84,14 @@ public class NotRunningJob implements MRClientProtocol { ApplicationAttemptId unknownAttemptId = recordFactory .newRecordInstance(ApplicationAttemptId.class); - // Setting AppState to NEW and finalStatus to UNDEFINED as they are never - // used for a non running job - return ApplicationReport.newInstance(unknownAppId, unknownAttemptId, "N/A", - "N/A", "N/A", "N/A", 0, null, YarnApplicationState.NEW, "N/A", "N/A", - 0, 0, FinalApplicationStatus.UNDEFINED, null, "N/A", 0.0f, "TEZ_MRR", null); + ApplicationReport report = recordFactory.newRecordInstance(ApplicationReport.class); + report.setUser("N/A"); + report.setName("N/A"); + report.setDiagnostics("N/A"); + report.setTrackingUrl("N/A"); + report.setStartTime(0); + report.setFinishTime(0); + return report; } NotRunningJob(ApplicationReport applicationReport, JobState jobState) {