Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A0F317EAD for ; Tue, 31 Mar 2015 04:17:59 +0000 (UTC) Received: (qmail 65780 invoked by uid 500); 31 Mar 2015 04:17:56 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 65736 invoked by uid 500); 31 Mar 2015 04:17:56 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 65727 invoked by uid 99); 31 Mar 2015 04:17:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 04:17:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 31 Mar 2015 04:17:55 +0000 Received: (qmail 65343 invoked by uid 99); 31 Mar 2015 04:17:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 04:17:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D4CECE00BF; Tue, 31 Mar 2015 04:17:34 +0000 (UTC) From: hsaputra To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org References: In-Reply-To: Subject: [GitHub] flink pull request: [FLINK-1771] Add support for submitting single... Content-Type: text/plain Message-Id: <20150331041734.D4CECE00BF@git1-us-west.apache.org> Date: Tue, 31 Mar 2015 04:17:34 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user hsaputra commented on a diff in the pull request: https://github.com/apache/flink/pull/542#discussion_r27452062 --- Diff: flink-clients/src/main/java/org/apache/flink/client/CliFrontend.java --- @@ -569,15 +590,33 @@ protected int executeProgram(PackagedProgram program, Client client, int paralle program.deleteExtractedLibraries(); } - LOG.info("Program execution finished"); + if(wait) { + LOG.info("Program execution finished"); + } - // we come here after the job has finished + // we come here after the job has finished (or the job has been submitted) if (execResult != null) { - System.out.println("Job Runtime: " + execResult.getNetRuntime()); - Map accumulatorsResult = execResult.getAllAccumulatorResults(); - if (accumulatorsResult.size() > 0) { - System.out.println("Accumulator Results: "); - System.out.println(AccumulatorHelper.getResultsFormated(accumulatorsResult)); + // if the job has been submitted to a detached YARN cluster, there won't be any + // exec results, but the object will be set (for the job id) + if(yarnCluster != null && yarnCluster.isDetached()) { --- End diff -- Small style nit, space after if-else and parentheses. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---