Issue Details (XML | Word | Printable)

Key: HADOOP-3091
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lohit Vijayarenu
Reporter: Lohit Vijayarenu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

hadoop dfs -put should support multiple src

Created: 26/Mar/08 07:13 AM   Updated: 08/Jul/09 04:42 PM
Return to search
Component/s: None
Affects Version/s: 0.16.2
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3091-1.patch 2008-03-26 07:16 AM Lohit Vijayarenu 10 kB
Text File Licensed for inclusion in ASF works HADOOP-3091-2.patch 2008-03-26 06:43 PM Lohit Vijayarenu 12 kB

Hadoop Flags: Incompatible change
Release Note: hadoop dfs -put accepts multiple sources when destination is a directory.
Resolution Date: 27/Mar/08 01:21 AM


 Description  « Hide
It would be good to have hadoop dfs -put to support multiple sources like LINUX cp
hadoop dfs -put <localsrc> ... <dst>

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Lohit Vijayarenu added a comment - 26/Mar/08 07:16 AM
Here is a patch which takes care of this for -put/-copyFromLocal and -moveFromLocal

Hadoop QA added a comment - 26/Mar/08 08:34 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12378608/HADOOP-3091-1.patch
against trunk revision 619744.

@author +1. The patch does not contain any @author tags.

tests included +1. The patch appears to include 5 new or modified tests.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests +1. The patch passed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2059/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2059/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2059/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2059/console

This message is automatically generated.


Mahadev konar added a comment - 26/Mar/08 05:42 PM
Path dstPath = new Path(dstf);
+ FileSystem dstFs = dstPath.getFileSystem(getConf());
+ dstFs.copyFromLocalFile(false, false, srcs, new Path(dstf));
+ }
  • creates path twice for the same string.
  • the automatic directory creation should not be there. We should error out if the directory does not exist.
  • also the hdfs_shell documentation (forrest) needs to be changed

Lohit Vijayarenu added a comment - 26/Mar/08 06:43 PM
Thanks Mahadev. Attaching new patch modifying as you suggested.

Mahadev konar added a comment - 26/Mar/08 08:03 PM
+1

Hadoop QA added a comment - 27/Mar/08 12:27 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12378657/HADOOP-3091-2.patch
against trunk revision 619744.

@author +1. The patch does not contain any @author tags.

tests included +1. The patch appears to include 5 new or modified tests.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests +1. The patch passed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2069/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2069/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2069/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2069/console

This message is automatically generated.


Chris Douglas added a comment - 27/Mar/08 01:21 AM
I just committed this. Thanks, Lohit!

Hudson added a comment - 27/Mar/08 12:18 PM