Apache Spark Basics

34 / 69
Apache Spark - Which of the following is not a way of creating...

Which of the following is not a way of creating RDD using scala?

  • var myrdd = sc.textFile("/mydata/...")
  • var myrdd = sc.parallelize(MyObject)
  • var myrdd = Array(1,2,3,4)
  • var myrdd = sc.parallelize("this is my data".split(" "))