You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Vinay Londhe <vi...@gmail.com> on 2023/04/21 20:01:06 UTC

Client process in Flink application mode

Hello

I have started to play around with Flink recently and I had a question
about the behavior of the Flink application mode.

When we start a Flink application using the command
flink run-application -t yarn-application my.jar, is it possible for the
client process that submits the Flink application to the JobManager to stay
running (and not exit) till the Flink application is running through some
parameters/arguments or other means? The behavior I am seeing is that the
client exits right after submitting the application to the Job Manager.

Thank you
Regards
Vinay

Re: Client process in Flink application mode

Posted by Shammon FY <zj...@gmail.com>.
Hi Vinay

If you need to do that, maybe you should get the job client or job
execution result and check the status of job in your application

Best,
Shammon FY

On Sun, Apr 23, 2023 at 2:03 PM Weihua Hu <hu...@gmail.com> wrote:

> Hi,
>
> The Flink client always exits when the application submission is complete.
>
> Can I ask why do you need to wait on the Client side?
>
> Best,
> Weihua
>
>
> On Sat, Apr 22, 2023 at 4:03 AM Vinay Londhe <vi...@gmail.com>
> wrote:
>
>> Hello
>>
>> I have started to play around with Flink recently and I had a question
>> about the behavior of the Flink application mode.
>>
>> When we start a Flink application using the command
>> flink run-application -t yarn-application my.jar, is it possible for the
>> client process that submits the Flink application to the JobManager to stay
>> running (and not exit) till the Flink application is running through some
>> parameters/arguments or other means? The behavior I am seeing is that the
>> client exits right after submitting the application to the Job Manager.
>>
>> Thank you
>> Regards
>> Vinay
>>
>

Re: Client process in Flink application mode

Posted by Weihua Hu <hu...@gmail.com>.
Hi,

The Flink client always exits when the application submission is complete.

Can I ask why do you need to wait on the Client side?

Best,
Weihua


On Sat, Apr 22, 2023 at 4:03 AM Vinay Londhe <vi...@gmail.com> wrote:

> Hello
>
> I have started to play around with Flink recently and I had a question
> about the behavior of the Flink application mode.
>
> When we start a Flink application using the command
> flink run-application -t yarn-application my.jar, is it possible for the
> client process that submits the Flink application to the JobManager to stay
> running (and not exit) till the Flink application is running through some
> parameters/arguments or other means? The behavior I am seeing is that the
> client exits right after submitting the application to the Job Manager.
>
> Thank you
> Regards
> Vinay
>