You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Jiandan Yang (JIRA)" <ji...@apache.org> on 2017/09/05 08:39:00 UTC
[jira] [Commented] (HDFS-12348) disable removing blocks to trash
while rolling upgrade
[ https://issues.apache.org/jira/browse/HDFS-12348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16153267#comment-16153267 ]
Jiandan Yang commented on HDFS-12348:
--------------------------------------
[~kihwal] How about adding dfs.datanode.trash.enable to configurableProperties of DataNode?
dfs.datanode.trash.enable=true move deleted block to trash dir
dfs.datanode.trash.enable = false, clean trash dir and disable trash
> disable removing blocks to trash while rolling upgrade
> ------------------------------------------------------
>
> Key: HDFS-12348
> URL: https://issues.apache.org/jira/browse/HDFS-12348
> Project: Hadoop HDFS
> Issue Type: New Feature
> Components: datanode
> Reporter: Jiandan Yang
> Assignee: Jiandan Yang
> Attachments: HDFS-12348.001.patch, HDFS-12348.002.patch, HDFS-12348.003.patch
>
>
> DataNode remove block file and meta file to trash while rolling upgrade,and do delete when
> executing finalize.
> This leads disk of datanode to be full, because
> (1) frequently creating and deleting files(eg,Hbase compaction);
> (2) cluster is very big, and rolling upgrade often last several days;
> Current our solution is clean trash by hand, but this is very dangerous in product environment.
> we think disable trash of datanode maybe a good method to avoid disk to be full.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org