flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-3937) Make flink cli list, savepoint, cancel and stop work on Flink-on-YARN clusters
Date Wed, 25 May 2016 13:33:12 GMT

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

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

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

    https://github.com/apache/flink/pull/2034#discussion_r64572519
  
    --- Diff: flink-clients/src/main/java/org/apache/flink/client/FlinkYarnSessionCli.java
---
    @@ -91,6 +93,7 @@
     
     	public FlinkYarnSessionCli(String shortPrefix, String longPrefix) {
     		QUERY = new Option(shortPrefix + "q", longPrefix + "query", false, "Display available
YARN resources (memory, cores)");
    +		APPLICATION_ID = new Option(shortPrefix + "id", longPrefix + "applicationId", true,
"Attach to running YARN session");
    --- End diff --
    
    The `APPLICATION_ID` option is integrated here but the `FlinkYarnSessionCli` doesn't support
attaching to existing applications. I think it could be useful to check during instantiation
of the YarnSessionCli in the `run(..)` method whether we want to start a new application or
resume.


> Make flink cli list, savepoint, cancel and stop work on Flink-on-YARN clusters
> ------------------------------------------------------------------------------
>
>                 Key: FLINK-3937
>                 URL: https://issues.apache.org/jira/browse/FLINK-3937
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Sebastian Klemke
>            Priority: Trivial
>         Attachments: improve_flink_cli_yarn_integration.patch
>
>
> Currently, flink cli can't figure out JobManager RPC location for Flink-on-YARN clusters.
Therefore, list, savepoint, cancel and stop subcommands are hard to invoke if you only know
the YARN application ID. As an improvement, I suggest adding a -yid <yarnApplicationId>
option to the mentioned subcommands that can be used together with -m yarn-cluster. Flink
cli would then retrieve JobManager RPC location from YARN ResourceManager.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message