Hadoop问题记录:Wrong FS: hdfs://hp5-249:9000/, expected: file:///
2014-11-08 21:01
495 查看
一般在对文件操作的时候可能出现这个问题,可能是打开文件的时候出错,也可能是对目录进行遍历的时候出问题。
出现这种问题一般是在eclipse中运行hadoop的时候出现,直接切换到shell下发送命令,可能不会出现这个问题。
假设当前在eclipse的项目目录下,具体解决办法如下:
接着在eclipse项目中点击右键-->Run as --> run on hadoop,就可以在控制台上正常输出信息了。
出现这种问题一般是在eclipse中运行hadoop的时候出现,直接切换到shell下发送命令,可能不会出现这个问题。
假设当前在eclipse的项目目录下,具体解决办法如下:
cp $HADOOP_HOME/etc/hadoop/core-site.xml ./bin cp $HADOOP_HOME/etc/hadoop/hdfs-site.xml ./bin
接着在eclipse项目中点击右键-->Run as --> run on hadoop,就可以在控制台上正常输出信息了。
相关文章推荐
- hadoop异常: Wrong FS: hdfs://192.168.1.xx:9000/output, expected: file:///
- hadoop程序问题:java.lang.IllegalArgumentException: Wrong FS: hdfs:/ expected file:///
- Wrong FS: hdfs://hadoop20:9000/word.txt, expected: file:///
- Wrong FS: hdfs://hadoop20:9000/word.txt, expected: file:///---异常解决方案
- hadoop程序问题:java.lang.IllegalArgumentException: Wrong FS: hdfs://.... expected file:///
- Hadoop Problem : Wrong FS: hdfs://localhost:9000/output, expected: file:///
- Hadoop使用java查询HDFS 错误:Wrong FS: hdfs://localhost:9000/user/hadoop, expected: file:///
- Wrong FS: hdfs://localhost:9000/home/hadoop/hadoop, expected: file:///
- hadoop异常: Wrong FS: hdfs://192.168.1.xx:9000/output, expected: file:///
- hadoop dfs 保错.IllegalArgumentException: Wrong FS: hdfs://XXX:9000, expected: file:///
- hadoop异常: Wrong FS: hdfs://192.168.1.xx:9000/output, expected: file:///
- java.lang.IllegalArgumentException: Wrong FS: hdfs://localhost:9000/out, expected: file:///
- hadoop程序抛出异常:java.lang.IllegalArgumentException: Wrong FS: hdfs:/ expected file:///
- Wrong FS: hdfs://localhost:9000/user/... expected: file:///
- [初学hadoop]错误信息:Wrong FS: hdfs://localhost:9000/user/... expected:&nb
- java.lang.IllegalArgumentException: Wrong FS: hdfs://localhost:54310/user/Hadoop/b, expected: file:/
- Wrong FS: hdfs://localhost:9000/user/... expected: file:///
- Windows下 haoop下运行程序时出现错误:Hadoop HDFS Wrong FS: hdfs:/ expected file:///
- Wrong FS: hdfs://localhost:9000/input, expected: file:///
- [初学hadoop]错误信息:hdfs://192.168.0.16:9000/report.bak, expected: file:///