You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yun Gao (Jira)" <ji...@apache.org> on 2022/04/13 06:28:06 UTC

[jira] [Updated] (FLINK-24757) Yarn application is not terminated after the job finishes when submitting a yarn-per-job insert job with SQL client

     [ https://issues.apache.org/jira/browse/FLINK-24757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yun Gao updated FLINK-24757:
----------------------------
    Fix Version/s: 1.16.0

> Yarn application is not terminated after the job finishes when submitting a yarn-per-job insert job with SQL client
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-24757
>                 URL: https://issues.apache.org/jira/browse/FLINK-24757
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Client
>    Affects Versions: 1.14.0
>            Reporter: Caizhi Weng
>            Priority: Major
>             Fix For: 1.15.0, 1.16.0
>
>
> I've seen this problem for about three times in the user mailing thread (previously I suspect that the users are specifying the wrong {{{}execution.target{}}}) until I myself also bumped into this problem. I've submitted a yarn-per-job batch insert SQL with Flink SQL client and after the job finishes Yarn application is not terminated.
> This is because yarn job cluster is using {{MiniDispatcher}} and it will directly terminate only in detached execution mode. This execution mode is (through some function calls) related to {{DeploymentOptions#ATTACHED}} which is true by default if jobs are submitted from SQL client.
> When submitting an insert job, SQL client will not wait for the job to finish. Instead it only reports the job id. So I think it is reasonable to set detached mode for every insert job.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)