今天在hadoop项目中出现以下报错:java.lang.IllegalArgumentException: Wrong FS: hdfs://......,expected: file:///....... 解决方法:需要把hadoop集群上的core-site.xml和hdfs-site.xml放到当前工程下,然后运行即可。 相关文章: