用java操做hdfs(建立文件夹,上传文件,下载文件,删除文件)

FileSystem fs=FileSystem.get(new URI("hdfs://hadoop:9000"), new Configuration());ide //建立文件夹oop fs.mkdirs(new Path("hdfs://hadoop:9000/zys2"));spa //上传文件blog FSDataOutputStream out=fs.create(new Path(
相关文章
相关标签/搜索