Is there any complete code available for checkpointing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there any complete code available for checkpointing

Abdullah bin Omar
Hi,

[1] speaks about enable checkpointing, and [2] speaks about checkpointed function. Do we need both to see a triggered and completed checkpoint (according to the pic) in the apache flink UI? 

Is there any complete code available for checkpointing so that we can run and see the triggered and completed checkpoint (according to the pic)?


Screen Shot 2021-03-08 at 3.12.06 PM.png (132K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Is there any complete code available for checkpointing

Arvid Heise-4
Hi Abdullah,

You don't need to implement checkpointed functions for checkpointing to work - but you may lose state if you manage it manually.

If you have enabled checkpointing, you should see it with any application that is running. Make sure that the checkpointing interval is small enough so that you can see it and that the job is fully running.

If you want to try out a different application, you can check out the AsyncIOExample [1].


On Wed, Mar 10, 2021 at 8:10 PM Abdullah bin Omar <[hidden email]> wrote:
Hi,

[1] speaks about enable checkpointing, and [2] speaks about checkpointed function. Do we need both to see a triggered and completed checkpoint (according to the pic) in the apache flink UI? 

Is there any complete code available for checkpointing so that we can run and see the triggered and completed checkpoint (according to the pic)?

Reply | Threaded
Open this post in threaded view
|

Re: Is there any complete code available for checkpointing

Abdullah bin Omar
Hi Arvid,

Thank you for your reply.


I am using to get input by using,

DataStream<String> data = env.socketTextStream("localhost", 9090);


It shows a error: The main method caused an error: org.apache.flink.client.program.ProgramInvocationException: Job failed 


Is there any particular rule to get input from localhost? or is only the above line of code enough? 




Thank you






On Thu, Mar 11, 2021 at 7:43 AM Arvid Heise <[hidden email]> wrote:
Hi Abdullah,

You don't need to implement checkpointed functions for checkpointing to work - but you may lose state if you manage it manually.

If you have enabled checkpointing, you should see it with any application that is running. Make sure that the checkpointing interval is small enough so that you can see it and that the job is fully running.

If you want to try out a different application, you can check out the AsyncIOExample [1].


On Wed, Mar 10, 2021 at 8:10 PM Abdullah bin Omar <[hidden email]> wrote:
Hi,

[1] speaks about enable checkpointing, and [2] speaks about checkpointed function. Do we need both to see a triggered and completed checkpoint (according to the pic) in the apache flink UI? 

Is there any complete code available for checkpointing so that we can run and see the triggered and completed checkpoint (according to the pic)?