• 博客(0)
  • 资源 (1)
  • 问答 (1)

空空如也

hdfsUtils文档

public void testList() throws Exception{ FileSystem hdfs = HDFSUtils.getFileSystem(); Path path = new Path("/opt/data/"); FileStatus[] fileStatus = hdfs.listStatus(path); for(FileStatus fs:fileStatus){ Path p = fs.getPath(); String info = fs.isDir() ? "目录":"文件"; System.out.println(info + " " +p) --------------------- 作者:Jeep_Dom 来源:CSDN 原文:https://blog.csdn.net/jeep_ouc/article/details/46345771 版权声明:本文为博主原创文章,转载请附上博文链接!

2019-02-25

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除