Hadoop总结:在java中使用FileSystem的api读写数据(能力工场)
//core包中fs.FileSystemString uri = "hdfs://192.168.1.240:9000/";//注意协议Configuration conf = new Configration();FileSystem fs = FileSystem.get(URI.create(uri),configuration);/