Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 HBase 中获取 HFile 的一些指标细节。以下是问题。
我了解 Hfile 存储在 HDFS 中,因此数据以块的形式存储在不同的数据节点中。但是如何从 HBase 的角度获取合并的数据。
如您所说,Hbase 表数据存储在 hdfs 上。hdfs上表数据的默认位置是/hbase/data/default path。您可以使用
hadoop fs -dus /user/hbase/data/*
命令获取表的总大小。转到此路径下的表文件夹以获取 hfiles。对于 hfiles 的大小,您可以使用上面的命令或检查 hbase 母版页。您可以找到所有区域名称及其大小。