java.io.IOException: No FileSystem for scheme: hdfs

解决方案是,在设置hadoop的配置的时候,显示设置这个类:"org.apache.hadoop.hdfs.DistributedFileSystem:

 

configuration.set("fs.hdfs.impl", "org.apache.hadoop.hdfs.DistributedFileSystem");
posted @ 2017-09-16 18:31  牵牛花  阅读(814)  评论(0编辑  收藏  举报