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

Improve fs -setrep error message for invalid replication factors

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:

      Description

      When the replication # is larger than dfs.replication.max (defined in conf), "fs -setrep" shows a meaningless error message. For example,

      //dfs.replication.max is 512
      
      $ hadoop fs -setrep 1000 r.txt
      setrep: java.io.IOException: file /user/tsz/r.txt.
      

        Attachments

        1. HDFS-328.001.patch
          7 kB
          Daniel Templeton

          Activity

            People

            • Assignee:
              templedf Daniel Templeton
              Reporter:
              szetszwo Tsz Wo Nicholas Sze
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: