hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liu chang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7251) Hadoop fs -put documentation issue
Date Fri, 17 Oct 2014 11:50:33 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14174967#comment-14174967

liu chang commented on HDFS-7251:

e...A directory is also a file in *nix system.

> Hadoop fs -put documentation issue
> ----------------------------------
>                 Key: HDFS-7251
>                 URL: https://issues.apache.org/jira/browse/HDFS-7251
>             Project: Hadoop HDFS
>          Issue Type: Task
>          Components: nfs
>            Reporter: Sai Srikanth
>            Priority: Minor
> cmd Hadoop fs -put documentation, in most of the version, it was given that source should
be file. 
> https://hadoop.apache.org/docs/r2.5.1/hadoop-project-dist/hadoop-common/FileSystemShell.html#put

> Usage: hdfs dfs -put <localsrc> ... <dst>
> Copy single src, or multiple srcs from local file system to the destination file system.
Also reads input from stdin and writes to destination file system.
> hdfs dfs -put localfile /user/hadoop/hadoopfile
> hdfs dfs -put localfile1 localfile2 /user/hadoop/hadoopdir
> hdfs dfs -put localfile hdfs://nn.example.com/hadoop/hadoopfile
> hdfs dfs -put - hdfs://nn.example.com/hadoop/hadoopfile Reads the input from stdin.
> I have tested with the directory as a source and it worked fine. I think the documentation
need to updated.  

This message was sent by Atlassian JIRA

View raw message