Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,将如何
x.foreach(rdd => rdd.cache())
不同于
x.foreachRDD(rdd => rdd.cache())
注意这里x是a DStream。
x
DStream
工作上没有区别,foreach()使用foreachRDD。foreach() 已被弃用,在 Spark 2.0 中此函数已被删除