hadoop运行WordCount时,Input path does not exist错误原因

在这里插入图片描述
修改配置文件core-site.xml 为如下所示

vim /usr/local/hadoop/etc/hadoop/core-site.xml

xml文件改为

<configuration>
 
</configuration>

如果将core-site.xml文件变动为原来的内容,则程序将不再去hdfs://localhost:9000下寻找input文件,而是在当前目录下寻找input文件,程序能够正常运行。

猜你喜欢

转载自blog.csdn.net/weixin_49390750/article/details/132830039