React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in Spark Sql by

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") 

Click here to read more about DevOps

1 Answer

0 votes
by

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

Related questions

Madanswer
+1 vote
asked Jun 30, 2019 in Spark Sql by sourabh.er.1234
+1 vote
asked Jun 30, 2019 in Spark Sql by sourabh.er.1234
...