我正在尝试使用以下代码通过pyspark访问我在hdfs中的文件:spark=SparkSession.builder.appName("MongoDBIntegration").getOrCreate()receipt=spark.read.json("hdfs:///bigdata/2.json")我得到一个错误IncompleteHDFSURI,nohost:hdfs:///bigdata/2.json但是如果我写命令hdfsdfs-cat/bigdata/1.json它会打印我的文件 最佳答案 错误消息说您没有在HDFSUR