CDH健康检查报DATA_NODE_BLOCK_COUNT告警

本文解析了HDFS DataNode块计数过高的警告信息,阐述了该警告的原因及其对DataNode性能的影响,并提供了调整阈值及减少块计数的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

告警原文:

   
  1. The health test result for DATA_NODE_BLOCK_COUNT has become concerning: The
  2. DataNode has 500,008 blocks. Warning threshold: 500,000 block(s).
1110497-20170222100609257-1303413432.png
 
CDH官网解释:
This is a DataNode health test that checks for whether the DataNode has too many blocks. Having too many blocks on a DataNode may affect the DataNode's performance, and an increasing block count may require additional heap space to prevent long garbage collection pauses. This test can be configured using the  DataNode Block Count Thresholds  DataNode monitoring setting.

网上的问答帖:

   
  1. Having more number of blocks raises the heap requirement at the DataNodes. The
  2. threshold warning exists to also notify you about this (that you may need to
  3. soon raise the DN heap size to allow it to continue serving blocks at the same
  4. performance).
  5. With CM5 we have revised the number to 600k, given memory optimisation
  6. improvements for DNs in CDH4.6+ and CDH5.0+. You can feel free to raise the
  7. threshold via the CM -> HDFS -> Configuration -> Monitoring section fields,
  8. but do look into if your users have begun creating too many tiny files as it
  9. may hamper their job performance with overheads of too many blocks (and
  10. thereby, too many mappers).
  11. 来源: http://community.cloudera.com/t5/Storage-Random-Access-HDFS/DATA-NODE-BLOCK-COUNT-threshold-200-00-block-s/td-p/12186
  12. 10-07-2014 10:47 PM
  13. Thanks for your response.
  14. I deleted useless HDFS files(3TB) yesterday(hadoop fs -rm -r), but warning
  15. messege is still continuous.
  16. DATA_NODE_BLOCK_COUNT is same before deleting files. (current value is 921,891
  17. blocks)
  18. How can I reduce current DATA_NODE_BLOCK_COUNT?
  19. Even after a file is deleted, the blocks will remain if HDFS Trash is enabled. Do you have Trash enabled? It configured as stated in this URL:
  20. http://www.cloudera.com/documentation/archive/manager/4-x/4-8-6/ClouderaManager-Managing-Clusters/cmmc_hdfs_trash.html


















转载于:https://www.cnblogs.com/xiaohe001/p/6427575.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值