[
https://issues.apache.org/jira/browse/FLINK-1771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14387943#comment-14387943
]
ASF GitHub Bot commented on FLINK-1771:
---------------------------------------
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<String, Object> 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.
> Add support for submitting single jobs to a detached YARN session
> -----------------------------------------------------------------
>
> Key: FLINK-1771
> URL: https://issues.apache.org/jira/browse/FLINK-1771
> Project: Flink
> Issue Type: Improvement
> Components: YARN Client
> Affects Versions: 0.9
> Reporter: Robert Metzger
> Assignee: Robert Metzger
>
> We need tests ensuring that the processing slots are set properly when
> starting Flink on YARN, in particular with the per job YARN session feature.
> Also, the YARN tests for detached YARN sessions / per job yarn clusters are
> polluting the local home-directory.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)