Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-328

Improve fs -setrep error message for invalid replication factors

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0
    • 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.
      
      1. HDFS-328.001.patch
        7 kB
        Daniel Templeton

        Activity

        Tsz Wo Nicholas Sze created issue -
        Tsz Wo Nicholas Sze made changes -
        Field Original Value New Value
        Description When the replication # is large than dfs.replication.max (defined in conf), "fs -setrep" shows a meaningless error message. For example,
        {noformat}
        //dfs.replication.max is 512

        $ hadoop fs -setrep 1000 r.txt
        setrep: java.io.IOException: file /user/tsz/r.txt.
        {noformat}
        When the replication # is larger than dfs.replication.max (defined in conf), "fs -setrep" shows a meaningless error message. For example,
        {noformat}
        //dfs.replication.max is 512

        $ hadoop fs -setrep 1000 r.txt
        setrep: java.io.IOException: file /user/tsz/r.txt.
        {noformat}
        Owen O'Malley made changes -
        Project Hadoop Common [ 12310240 ] HDFS [ 12310942 ]
        Key HADOOP-3891 HDFS-328
        Component/s dfs [ 12310710 ]
        Ravi Phulari made changes -
        Assignee Ravi Phulari [ raviphulari ]
        Allen Wittenauer made changes -
        Labels newbie
        Allen Wittenauer made changes -
        Component/s namenode [ 12312926 ]
        Daniel Templeton made changes -
        Assignee Ravi Phulari [ raviphulari ] Daniel Templeton [ templedf ]
        Daniel Templeton made changes -
        Attachment HDFS-328.001.patch [ 12752855 ]
        Daniel Templeton made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Daniel Templeton made changes -
        Attachment HDFS-328.001.patch [ 12752855 ]
        Daniel Templeton made changes -
        Attachment HDFS-328.001.patch [ 12752869 ]
        Andrew Wang made changes -
        Summary "fs -setrep" should have better error message Improve fs -setrep error message for invalid replication factors
        Andrew Wang made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 2.8.0 [ 12329057 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development