Hadoop在eclipse中出现Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS: hdfs://192.168.146.183:9000/example, expected: file
出现问题:
Exception in thread “main” java.lang.IllegalArgumentException: Wrong FS: hdfs://192.168.146.143:9000/one, expected: file
解决方法:
hadoop需要把集群上的core-site.xml和hdfs-site.xml放到当前工程下。eclipse工作目录的bin文件夹下面或直接放在eclipse中src目录下