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

Documentation for setrep is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.0.4
    • 1.3.0
    • documentation
    • Reviewed

    Description

      The documentation in: http://hadoop.apache.org/docs/r1.0.4/file_system_shell.html#setrep states that one must use the command as follows:

      • Usage: hdfs dfs -setrep [-R] <path>
      • Example: hdfs dfs -setrep -w 3 -R /user/hadoop/dir1

      Correct would be to state that setrep needs the replication factor and the replication factor needs to be right before the DFS path.
      Must look like this:

      • Usage: hdfs dfs -setrep [-R] [-w] <rep> <path/file>
      • Example: hdfs dfs -setrep -w -R 3 /user/hadoop/dir1

      Attachments

        1. HDFS-6649.branch-1.patch
          1 kB
          Akira Ajisaka

        Activity

          People

            aajisaka Akira Ajisaka
            fahlke Alexander Fahlke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: