Spark Streaming Saving data to MySQL with foreachRDD() in Scala
问题 Spark Streaming Saving data to MySQL with foreachRDD() in Scala Please, can somebody give me a functional example about saving an Spark Streaming to MySQL DB using foreachRDD() in Scala. I have below code but it's not working. I just need a simple example, not sintaxis or theory. Thank you! package examples import org.apache.spark.{SparkConf, SparkContext} import org.apache.spark._ import org.apache.spark.storage.StorageLevel import org.apache.spark.streaming.{Seconds, StreamingContext}