Back
Can anyone tell me how to read a JSON file in Spark Scala?
The following command can be used to read a JSON file using Spark-Scala:
val jsonData = sqlContext.read.json(""path-to-json-file.json"")"
If you are looking for an online course to learn Spark, I recommend this Spark Certification program by Intellipaat.
31k questions
32.8k answers
501 comments
693 users