하둡 HDFS 폴더의 파일 갯수 확인 방법


하둡 HDFS 폴더의 파일 갯수 확인 방법

FileSystem fs = FileSystem.get(conf); Path pt = new Path("/path"); ContentSummary cs = fs.getContentSummary(pt); long fileCount = cs.getFileCount();https://stackoverflow.com/questions/20381422/file-count-in-an-hdfs-directory MapReduce 프로그래밍 중간에, 생성되는 파일의 갯수를 알아야 했는데, 생각보다 쉬운방법이 있네요.

하둡 HDFS 폴더의 파일 갯수 확인 방법에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : 하둡 HDFS 폴더의 파일 갯수 확인 방법