January 2019
Beginner to intermediate
154 pages
4h 31m
English
Use count() to count the number of elements in the RDD. The following Scala code counts the number of an RDD and returns 10 as output:
//scalaspark.sparkContext.parallelize(1 to 10).count()res17: Long = 10
Read now
Unlock full access