Hadoop之API
读取文件@Testpublic void testConnentNamenode() throws Exception{ Configuration cf = new Configuration(); FileSystem fs = FileSystem.get(new URI("hdfs://192.168.000.000:9000"), cf, "root"); InputStream in = fs.open(new Path("/test