Saturday 2 January 2016

Hadoop: count: count number of files, direcotories, content size in a folder

“count” command is used to count the number of directories, files and bytes under the paths that match the specified file pattern.

Usage:
hadoop fs [generic options] -count [-q] [-h] <path> ...
 


$hadoop fs -count -h -v /user/cloudera/demo2
   DIR_COUNT   FILE_COUNT       CONTENT_SIZE PATHNAME
           1            5              8.7 M /user/cloudera/demo2
 




Previous                                                 Next                                                 Home

No comments:

Post a Comment