Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7251

Hadoop fs -put documentation issue

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • nfs
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            srikanth1184 Sai Nukavarapu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: