[ 
https://issues.apache.org/jira/browse/FLINK-8872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16406292#comment-16406292
 ] 

ASF GitHub Bot commented on FLINK-8872:
---------------------------------------

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5672#discussion_r175756295
  
    --- Diff: 
flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java ---
    @@ -225,7 +226,9 @@ protected void run(String[] args) throws Exception {
                        final ClusterClient<T> client;
     
                        // directly deploy the job if the cluster is started in 
job mode and detached
    -                   if (flip6 && clusterId == null && 
runOptions.getDetachedMode()) {
    +                   boolean detachedMode = 
customCommandLine.isDetachedMode(commandLine);
    +                   LOG.debug("Detached job mode is set to {}", 
detachedMode);
    +                   if (flip6 && clusterId == null && detachedMode) {
    --- End diff --
    
    I would be willing to do so. Alternatively, we could register a `-yd` 
option in `CliFrontend` for backwards compatibility reasons. This would, 
however, also have an effect if used with standalone mode.


> Yarn detached mode via -yd does not detach
> ------------------------------------------
>
>                 Key: FLINK-8872
>                 URL: https://issues.apache.org/jira/browse/FLINK-8872
>             Project: Flink
>          Issue Type: Bug
>          Components: Client, YARN
>    Affects Versions: 1.5.0
>            Reporter: Nico Kruber
>            Assignee: Nico Kruber
>            Priority: Blocker
>              Labels: flip-6
>             Fix For: 1.5.0
>
>
> Running yarn per-job cluster in detached mode currently does not work and 
> waits for the job to finish.
> Example:
> {code}
> ./bin/flink run -m yarn-cluster -yn 10 -yjm 768 -ytm 3072 -ys 2 -yd -p 20 -c 
> org.apache.flink.streaming.examples.wordcount.WordCount 
> ./examples/streaming/WordCount.jar --input
> {code}
> Output in case of an infinite program would then end with something like this:
> {code}
> 2018-03-05 13:41:23,311 INFO  
> org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Waiting for 
> the cluster to be allocated
> 2018-03-05 13:41:23,313 INFO  
> org.apache.flink.yarn.AbstractYarnClusterDescriptor           - Deploying 
> cluster, current state ACCEPTED
> 2018-03-05 13:41:28,342 INFO  
> org.apache.flink.yarn.AbstractYarnClusterDescriptor           - YARN 
> application has been deployed successfully.
> 2018-03-05 13:41:28,343 INFO  
> org.apache.flink.yarn.AbstractYarnClusterDescriptor           - The Flink 
> YARN client has been started in detached mode. In order to stop Flink on 
> YARN, use the following command or a YARN web interface to stop it:
> yarn application -kill application_1519984124671_0006
> Please also note that the temporary files of the YARN session in the home 
> directoy will not be removed.
> Starting execution of program
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to