Spark SQL “No input paths specified in jobs” when create DataFrame based on JSON file

后端 未结 4 626
自闭症患者
自闭症患者 2021-01-23 13:39

I am a beginner in Spark and I am trying to create a DataFrame based on the content of JSON file using PySpark by following the guide: http://spark.apache.org/docs/1.6.1/sql-pro

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-23 14:29

    try to add file:// at the beginning of your absolute path: df = sqlContext.read.json("file:///user/ABC/examples/src/main/resources/people.json")

提交回复
热议问题