Categories

Jun 30, 2019 in Spark Sql

Q:

Syntax to create a DataFrame based on the content of a JSON file 

(i)spark.textfile("examples/src/main/resources/data.json") 

(ii)spark.read("examples/src/main/resources/data.json") 

(iii)spark.read.json("examples/src/main/resources/data.json") 

(iv)spark.json("examples/src/main/resources/data.json") 

1 Answer

Jun 30, 2019

Correct answer option is spark.read.json("examples/src/main/resources/data.json") 

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Jun 30, 2019 in Spark Sql
Jun 30, 2019 in Spark Sql
Jun 30, 2019 in Spark Sql
...