1.Hadoop写入 public void putFile() throws Exception{ Configuration conf = new Configuration(); conf.set("fs.defaultFs","hdfs://192.168.161.200:8020/")<