[
https://issues.apache.org/jira/browse/HADOOP-11827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504359#comment-14504359
]
Zoran Dimitrijevic commented on HADOOP-11827:
---------------------------------------------
Thanks for the comments Allen. I've addressed most of them:
1, 2, 3: done
4: in order to prefer flags over properties, i needed a value to know whether
flag was set or not. 0 seemed easier than yet another bool.
5. I added it so that I can have minimal changes in the unittest (rerun tests
for various number of threads using org.junit.runners.Parameterized
6. done
7. agree. I wanted to make multithreaded logic outside of
SimpleCopyListing.java but if you think it's an overkill, I can refactor. But
it'll be uglier and if we need this again, we won't have the wrapper.
8. considering how much code is invoked for each of these simple
MaybePrintStats, I don't think it's worth doing it. But, I don't have strong
opinions, I just think we should print some progress since this stage can be
order of tens of minutes.
9. removed.
10. In current code, we use the same file system instance, so I don't think
it's a problem. I use one per thread since we have small number of threads and
these run listStatus in parallel.
11. changed the docs - both are blocking, but one can be interrupted by
exceptions, and then the user must handle it. Please suggest better names and
I'll refactor it. Or maybe just keep one.
> Speed-up distcp buildListing() using threadpool
> -----------------------------------------------
>
> Key: HADOOP-11827
> URL: https://issues.apache.org/jira/browse/HADOOP-11827
> Project: Hadoop Common
> Issue Type: Improvement
> Components: tools/distcp
> Affects Versions: 2.7.0, 2.7.1
> Reporter: Zoran Dimitrijevic
> Assignee: Zoran Dimitrijevic
> Attachments: HADOOP-11827-02.patch, HADOOP-11827-03.patch,
> HADOOP-11827.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> For very large source trees on s3 distcp is taking long time to build file
> listing (client code, before starting mappers). For a dataset I used (1.5M
> files, 50K dirs) it was taking 65 minutes before my fix in HADOOP-11785 and
> 36 minutes after the fix).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)