赞
踩
-
-
-
-
- Configuration conf = new Configuration();
- conf.set("fs.hdfs.impl",org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
- fs = FileSystem.get(new URI(HDFS_PATH), conf);
若出现java.io.IOException: No FileSystem for scheme: hdfs这个问题,加上
conf.set("fs.hdfs.impl",org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
代码可以解决
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。