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

后端 未结 4 581
自闭症患者
自闭症患者 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:36

    You must specify the file system protocol:

    • hdfs Hadoop File System (used by default)
    • file local file system
    • s3a / s3n AWS S3
    • swift

    But also, the path must exist where the Spark driver and worker(s) are executed.

提交回复
热议问题