You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Jacob Tolar (JIRA)" <ji...@apache.org> on 2017/06/22 20:52:00 UTC

[jira] [Created] (HADOOP-14574) dfs getmerge operation should be able to write to stdout

Jacob Tolar created HADOOP-14574:
------------------------------------

             Summary: dfs getmerge operation should be able to write to stdout
                 Key: HADOOP-14574
                 URL: https://issues.apache.org/jira/browse/HADOOP-14574
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Jacob Tolar
            Priority: Minor


the getmerge command ( https://github.com/apache/hadoop/blob/6d116ffad23b470f8e9ca131d8e89cbbbb4378d7/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CopyCommands.java#L53-L142 ) should support writing to stdout as well as to a local file.

You can do this now by providing a path of /dev/fd/0, /dev/stdout, or some named pipe, but those can be somewhat inconvenient and nonportable. (E.g. writing to /dev/stdout tries to write /dev/.stdout.crc when I run it). 

I suggest that when called with "-" as the destination path, getmerge writes all output directly to stdout. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org