摘要:
java读取hdfs时报错:Wrong FS: hdfs://centos1:9000/user/hadoop/input, expected: file:///首先确认 是用FileSystem.get(conf) 而不是FileSystem.getLocal(conf) 初始化的 FileSystem 对象.如果还有问题: 把集群里的 core-site.xml mapped-site.xml hdfs-site.xml slaves 等文件拷贝到eclipse 配置的 Hadoop 目录里.//hdfs://centos1:9000//user/hadoop/input hdfs://c 阅读全文