Support Questions
Find answers, ask questions, and share your expertise

number of hfiles for a particular hbase table

How do i get to know the number of hfiles of a particular hbase table. IS there a command to know that or we can see it from hbase ui?

1 REPLY 1

Not sure about your usecase, but hfiles per region usually more usefull.

You can check "Num storesfiles" per region per regionserver on below link

http://<regionserver>:16030/rs-status#regionStoreStats

or, If you want to count all hfiles, then you can iterate over hdfs directory to count the number of files.(files reside in below directory)

/<hbase_home>/hbase/data/<namespace>/<tablename>/<regionname>/<storeName>