wujinhu commented on HADOOP-15262:

Attach HADOOP-15262.005.patch! Set a upper limit to waiting list size.

With this patch resolved, users can improve copy performance by increase 
*fs.oss.max.copy.threads* and *fs.oss.max.copy.tasks.per.dir*(Old version 
copies directory in series). Generally*,* the greater of the 
*fs.oss.max.copy.threads* and ** *fs.oss.max.copy.tasks.per.dir***, the 
better(if we have enough resources)

Here is one use case that drives us to have this improvement.

Users use spark/tensorFlow/..... to train models and save models file to OSS. 
However, the number of the model files is large, so it will be slow when 
committing jobs because frameworks will call rename().


> AliyunOSS: rename() to move files in a directory in parallel
> ------------------------------------------------------------
>                 Key: HADOOP-15262
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15262
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/oss
>    Affects Versions: 3.0.0
>            Reporter: wujinhu
>            Assignee: wujinhu
>            Priority: Major
>             Fix For: 3.1.0, 2.9.1, 3.0.1
>         Attachments: HADOOP-15262.001.patch, HADOOP-15262.002.patch, 
> HADOOP-15262.003.patch, HADOOP-15262.004.patch, HADOOP-15262.005.patch
> Currently, rename() operation renames files in series. This will be slow if a 
> directory contains many files. So we can improve this by rename files in 
> parallel.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to