Mary works in an analytics project and would like to perform analysis using Spark core. She need to load the dataset(/salehdfs/sale.csv) in to the spark area and analyze it using Spark logic. Which of the below method will be used by her to load the file in to Spark RDD ?
sc.textFile("/salehdfs/sale.csv");
sc.loadFile("/salehdfs/sale.csv");
sc.load("/salehdfs/sale.csv");
sc.save("/salehdfs/sale.csv");
To get all Infosys Certified Spark Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee