Apache Spark Basics

36 / 69
Apache Spark - To get first 10 elements of an rdd myrdd, which...

To get first 10 elements of an rdd myrdd, which command should we use?

  • myrdd.take(10)
  • sc.take(10)
  • myrdd.collect(10)
  • myrdd.limi(10)
  • sc.limit(10)