does mapFunction need to implement CheckpointedFunction?

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

does mapFunction need to implement CheckpointedFunction?

liu ze
Hi,

I want to update third-party system in the mapFunction ,does mapFunction need to implement CheckpointedFunction?

For example, in the mapFunction I want to update mysql, do I need to implement checkpointfunc,  manage the state myself


stream=env.addSource()

stream.map(

"insert update mysql"

"A checkpointState to be implemented here?"
)

stream.addsink(kafka)


good luck!
Reply | Threaded
Open this post in threaded view
|

Re: does mapFunction need to implement CheckpointedFunction?

Biao Liu
Sorry, I don't get your point. Before answering the question, I guess we need to make sure what you exactly want.

BTW, have you read the document of checkpointing or state? [1] [2]
Maybe it could help.


liu ze <[hidden email]> 于2019年7月5日周五 下午2:37写道:
Hi,

I want to update third-party system in the mapFunction ,does mapFunction need to implement CheckpointedFunction?

For example, in the mapFunction I want to update mysql, do I need to implement checkpointfunc,  manage the state myself


stream=env.addSource()

stream.map(

"insert update mysql"

"A checkpointState to be implemented here?"
)

stream.addsink(kafka)


good luck!