修改配置文件core-site.xml 为如下所示
vim /usr/local/hadoop/etc/hadoop/core-site.xml
xml文件改为
<configuration>
</configuration>
如果将core-site.xml文件变动为原来的内容,则程序将不再去hdfs://localhost:9000下寻找input文件,而是在当前目录下寻找input文件,程序能够正常运行。
修改配置文件core-site.xml 为如下所示
vim /usr/local/hadoop/etc/hadoop/core-site.xml
xml文件改为
<configuration>
</configuration>
如果将core-site.xml文件变动为原来的内容,则程序将不再去hdfs://localhost:9000下寻找input文件,而是在当前目录下寻找input文件,程序能够正常运行。