hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Shkolnik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6203) Improve error message when moving to trash fails due to quota issue
Date Mon, 31 Aug 2009 23:34:32 GMT

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

Boris Shkolnik commented on HADOOP-6203:

1. The idea is to make sure they know they can use skipTrash option. They can find real reason
by looking at the logs. We can print exception.cause.message also, but that will make the
message rather long. It will look like this:
>bin/hdfs dfs -rm /file3
Problem with Trash.org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: The NameSpace
quota (directories and files) of directory  is exceeded: quota=3 file count=7. Consider using
-skipTrash option
rm: Failed to move to trash: hdfs://localhost:9000/file3

We cannot catch Quota exception directly because it is part of hadoop-hdfs. Parsing string
to find out that it is quota related doesn't sound like a good idea.

Please specify if you like the longer version of the message.

2. if skipTrash is true - moveToTrash() won't be called.

> Improve error message when moving to trash fails due to quota issue
> -------------------------------------------------------------------
>                 Key: HADOOP-6203
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6203
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Jakob Homan
>            Assignee: Boris Shkolnik
>         Attachments: HADOOP-6203.patch, HADOOP-6203.patch
> HADOOP-6080 provided an option for deleting files even when overquota, but the error
message that's returned in this situation is unhelpful and doesn't suggest skipTrash as a
> {noformat}$ hdfs -rmr /foo/bar/bat/boo
> rmr: Failed to move to trash:
> hdfs://cluster/foo/bar/bat/boo{noformat}
> In this situation, the error message should say there was a quote problem and suggest

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message