[ 
http://issues.apache.org/jira/browse/HADOOP-673?page=comments#action_12455819 ] 
            
Owen O'Malley commented on HADOOP-673:
--------------------------------------

I'm worried about the performance of using getCanonicalFile on every directory 
during the recursion, since it must traverse the entire path up to '/' looking 
for symlinks.

Another solution would be to just delete the directory first using 
File.delete() and if it is a symlink, it will work. (With the slight 
assumption, which could be checked, that the parent directory was writable.)

> the task execution environment should have a current working directory that 
> is task specific
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-673
>                 URL: http://issues.apache.org/jira/browse/HADOOP-673
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.7.2
>            Reporter: Owen O'Malley
>         Assigned To: Mahadev konar
>         Attachments: cwd.patch
>
>
> The tasks should be run in a work directory that is specific to a single 
> task. In particular, I'd suggest using the <local>/jobcache/<jobid>/<taskid> 
> as the current working directory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to