[ 
https://issues.apache.org/jira/browse/HADOOP-17021?focusedWorklogId=486140&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-486140
 ]

ASF GitHub Bot logged work on HADOOP-17021:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Sep/20 09:31
            Start Date: 18/Sep/20 09:31
    Worklog Time Spent: 10m 
      Work Description: wojiaodoubao commented on a change in pull request 
#1993:
URL: https://github.com/apache/hadoop/pull/1993#discussion_r490822258



##########
File path: 
hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
##########
@@ -824,6 +824,19 @@ Example:
 * `hadoop fs -truncate 55 /user/hadoop/file1 /user/hadoop/file2`
 * `hadoop fs -truncate -w 127 hdfs://nn1.example.com/user/hadoop/file1`
 
+concat
+--------
+
+Usage: `hadoop fs -concat <target file> <source files>`
+
+Concatenate existing source files into the target file. Target file and source
+files should be in the same directory.
+
+Example:
+
+* `hadoop fs -concat /user/hadoop/target-file /user/hadoop/file-0 
/user/hadoop/file-1`
+* `hadoop fs -concat /user/hadoop/target-file /user/hadoop/file-*`

Review comment:
       I didn't understand with the expansion locally part. I think the 
expansion would be done by org.apache.hadoop.fs.shell.Command so even not using 
'bash' the expansion would still work correctly? Sorry if I understand it 
wrong. A more detailed explanation would be very helpful.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 486140)
    Time Spent: 1h 20m  (was: 1h 10m)

> Add concat fs command
> ---------------------
>
>                 Key: HADOOP-17021
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17021
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Jinglun
>            Assignee: Jinglun
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: HADOOP-17021.001.patch
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> We should add one concat fs command for ease of use. It concatenates existing 
> source files into the target file using FileSystem.concat().



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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