Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

File count by directories using Navigator UI or API


Is it possible to get file count by directories using Navigator? For example, I would like to know which directory contains 100 files or less. Hdfs hdfs -count is not an option.

Thank you


Cloudera Employee

Hello Vitali1,


The file count by directory can be accessed in Cloudera Navigator via the HDFS Analytics feature.


To access HDFS Analytics, please do the following:


1. From the Cloudera Navigator main menu, go to Analytics -> HDFS.


2. On the HDFS Analytics page, select the "Size" chart.


3. After selecting the Size chart, under the HDFS Files, select the "By Directory" option/radio button.


4. The results will sort by "Directory" and "Number of Files" in decending order.