Several problems of SparkStream checkpoint

I just used spark streaming. I have a few questions about checkpoint:

    There are two types of
  1. checkpoint, one for meta for driver and one for data. The manual says that the checkpoint of data will be written only if you use stateful transformation. So, will I write if I don"t use stateful transformation,data "s checkpoint data? If I don"t write, where can I get the lost rdd when I re-restart?
  2. The checkpoint in
  3. batch job I can specify which rdd to write, or at which step to write checkpoint. So in streaming, do I need to use foreachRDD {rdd.checkpoint ()}?
  4. if I don"t show write rdd.checkpoint () in spark streaming, how does spark decide which rdd should write the data checkpoint file?

if you don't write it, then you won't do it. Checkpoint,rdd will re-calculate from the raw data
look at checkpont's implementation

https://www.runexception.com/...

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e90394-12ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e90394-12ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?