hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Douglas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (MAPREDUCE-1305) Massive performance problem with DistCp and -delete
Date Wed, 10 Feb 2010 08:36:28 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Douglas updated MAPREDUCE-1305:
-------------------------------------

    Attachment: M1305-2.patch

*nod* This version uses Trash directly, avoiding FsShell but keeping existing behavior

> Massive performance problem with DistCp and -delete
> ---------------------------------------------------
>
>                 Key: MAPREDUCE-1305
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1305
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: distcp
>    Affects Versions: 0.20.1
>            Reporter: Peter Romianowski
>            Assignee: Peter Romianowski
>         Attachments: M1305-1.patch, M1305-2.patch, MAPREDUCE-1305.patch
>
>
> *First problem*
> In org.apache.hadoop.tools.DistCp#deleteNonexisting we serialize FileStatus objects when
the path is all we need.
> The performance problem comes from org.apache.hadoop.fs.RawLocalFileSystem.RawLocalFileStatus#write
which tries to retrieve file permissions by issuing a "ls -ld <path>" which is painfully
slow.
> Changed that to just serialize Path and not FileStatus.
> *Second problem*
> To delete the files we invoke the "hadoop" command line tool with option "-rmr <path>".
Again, for each file.
> Changed that to dstfs.delete(path, true)

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


Mime
View raw message