Spark的对象序列化机制当我使用如下代码来测试foreach的时候, 出现了def main(args: Array[String]): Unit = { val sc = new SparkContext(new SparkConf().setAppName("RDD").setMaster("local[*]")) val user = new User(age = 30) sc.makeRDD(List(1,2,3,4)).foreach( num =>
摘要由CSDN通过智能技术生成
Spark的对象序列化机制
当我使用如下代码来测试foreach的时候, 出现了
def main(args: Array[String]):Unit={
val sc =new SparkContext(new SparkConf().setAppName("RDD").setMaster("local[*]"))val user =new User(age =30)
sc.makeRDD(List(1
Spark的对象序列化机制当我使用如下代码来测试foreach的时候, 出现了def main(args: Array[String]): Unit = { val sc = new SparkContext(new SparkConf().setAppName("RDD").setMaster("local[*]")) val user = new User(age = 30) sc.makeRDD(List(1,2,3,4)).foreach( num =>