Re: flink job restarts when flink cluster restarts?
by default all the metadata is lost when shutting down the
JobManager in a non high available setup. Flink uses Zookeeper
together with a distributed filesystem to store the required
metadata  in a persistent and distributed manner.
A single node setup is rather uncommon, but you can also start
Zookeeper locally as it is done in our end-to-end tests .