分享

询问,clouderamanager相应的健康数据目录,多久自动清理?

高兴生活 发表于 2017-7-3 09:46:38 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 11613
服务器空间不太够,最近几日一直人工查询占用磁盘空间比较大的目录,
cloudera-service-monitor cloudera-scm-eventserver cloudera-host-monitor
这些目录占用空间都比较大,查询官方提到存储的是集群的健康数据,并且会滚动到10g大小的时候会自动清理,可是cloudera-service-monitor已经超过10GB了,还是没自动清理。
是怎么回事呢?

已有(4)人评论

跳转到指定楼层
IT_雪夜归人 发表于 2017-7-3 11:31:07
我记得是满10G后会有删除策略的,你可以在设置里面找找;
实在不行就手动删了,没啥影响,不过是之前的监控数据。
回复

使用道具 举报

langke93 发表于 2017-7-3 13:22:36
官网有的:先进入配置选项,然后namenode,然后找到 Filesystem Trash Interval 属性



英文如下
Setting the Trash Interval[size=0.6em]
  • Go to the HDFS service.
  • Click the Configuration tab.
  • Select Scope > NameNode.
  • Specify the Filesystem Trash Interval property, which controls the number of minutes after which a trash checkpoint directory is deleted and the number of minutes between trash checkpoints. For example, to enable trash so that deleted files are deleted after 24 hours, set the value of the Filesystem Trash Interval property to 1440.Note: The trash interval is measured from the point at which the files are moved to trash, not from the last time the files were modified.
    If more than one role group applies to this configuration, edit the value for the appropriate role group. See Modifying Configuration Properties Using Cloudera Manager.
  • Click Save Changes to commit the changes.
  • Restart all NameNodes.

类似帖子如何通过cloudera manager开启回收站并设置删除时间
http://www.aboutyun.com/forum.php?mod=viewthread&tid=14487


回复

使用道具 举报

高兴生活 发表于 2017-7-3 19:28:57
IT_雪夜归人 发表于 2017-7-3 11:31
我记得是满10G后会有删除策略的,你可以在设置里面找找;
实在不行就手动删了,没啥影响,不过是之前的监 ...

没找到这个设置,应该是自动的吧。
回复

使用道具 举报

高兴生活 发表于 2017-7-3 19:30:08
langke93 发表于 2017-7-3 13:22
官网有的:先进入配置选项,然后namenode,然后找到 Filesystem Trash Interval 属性

谢谢你的回答,但是你的回答跟我问的问题不一致!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条