hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Radia (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7284) Trash and shell's rm does not work for viewfs
Date Thu, 26 May 2011 02:40:47 GMT

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

Sanjay Radia commented on HADOOP-7284:
--------------------------------------

The reason I didn't do the config option is that the user will have to write code to
determine what value to set based on the environment in which he runs. (I wrote the config
option code but then realized that it was not the right solution and didn't want to make a
new config parameter public and then be forced to pull it out later.)

The $HOME may not work since the $HOME on my desktop is not the right one for HDFS to which
 I am submitting the job. My admin has set up a viewfs config that matches the
hdfs cluster in which my job will run. The $HOME of the submitting machine is not
relevant.

This is a fairly subtle problem - I am not sure which solution is right  otherwise I would
have put it in. The solution in this patch is:  the viewfilesystem impl
has a set of heuristics that make it work for some common conventions: /user /Users, /home,
/homes. It is an okay solution but clearner not general enough to work in all environments.
In the short term it will work till we figure out a cleaner solution. 

> Trash and shell's rm does not work for viewfs
> ---------------------------------------------
>
>                 Key: HADOOP-7284
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7284
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Sanjay Radia
>            Assignee: Sanjay Radia
>             Fix For: 0.23.0
>
>         Attachments: trash1.patch, trash2.patch, trash3.patch, trash4.patch, trash5.patch,
trash6.patch, trash7.patch
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message