标签:bsp blog code class collect parallel nbsp console int
1、take
scala> val t = sc.parallelize(1 to 10) t: org.apache.spark.rdd.RDD[Int] = ParallelCollectionRDD[0] at parallelize at <console>:27 scala> t.take(3) res0: Array[Int] = Array(1, 2, 3)
标签:bsp blog code class collect parallel nbsp console int
原文地址:http://www.cnblogs.com/huanhuanang/p/7228092.html