Why does Spark report that it does not exist on hdfs when it pulls local files when running the code?

You see if your operating environment is configured with HADOOP_HOME, or the yarn association is configured in the configuration file, if so, you should call file:/// in front of your path

Otherwise Spark will automatically change the path to the hdfs path

Guess you like

Origin blog.csdn.net/dudadudadd/article/details/114241457