Select the following option which will display the record starting with the word "hadoop" of an RDD.

rdd.filter(x => x.startsWith("hadoop")).collect

rdd.filter(x => x.contains("hadoop")).collect

rdd.filter(x => x.contains("hadoop")).first

rdd.filter(x => x.starts("hadoop")).collect

Verified Answer
Correct Option - a

To get all Infosys Certified Spark Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram