hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12371) hadoop fs -expunge is not able to remove trash
Date Tue, 01 Sep 2015 08:43:45 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14724992#comment-14724992
] 

Weiwei Yang commented on HADOOP-12371:
--------------------------------------

Run 

{panel}
hadoop fs -expunge
15/09/01 01:02:34 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval
= 360 minutes, Emptier interval = 0 minutes.
{panel}

Shell output doesn't indicate expunge is in progress or not, we need to improve the messages
to be more informative. And this command seems not work, trash files are not removed, check
NN log

{panel}
2015-07-27 22:32:14,837 INFO  fs.TrashPolicyDefault (TrashPolicyDefault.java:initialize(92))
- Namenode trash configuration: Deletion interval = 360 minutes, Emptier interval = 0 minutes.
2015-07-27 22:32:14,837 INFO  fs.TrashPolicyDefault (TrashPolicyDefault.java:<init>(247))
- The configured checkpoint interval is 0 minutes. Using an interval of 360 minutes that is
used for deletion instead
{panel}

So it looks like the Emptier thinks this is a client configuration and ignore it, using server
side 360 minutes instead. By running this command, I expect to remove trash however it doesn't
honor the intention. 

> hadoop fs -expunge is not able to remove trash
> ----------------------------------------------
>
>                 Key: HADOOP-12371
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12371
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: trash
>    Affects Versions: 2.7.1
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>              Labels: namenode, trash
>
> After HADOOP-8689, hadoop fs -expunge seems not work anymore. It returns following message
from shell output : The configured checkpoint interval is 0 minutes. Using an interval of
360 minutes that is used for deletion instead. Never removing the trash files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message