You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Daniel Templeton (JIRA)" <ji...@apache.org> on 2015/08/27 23:09:47 UTC

[jira] [Updated] (HDFS-328) "fs -setrep" should have better error message

     [ https://issues.apache.org/jira/browse/HDFS-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Templeton updated HDFS-328:
----------------------------------
    Attachment: HDFS-328.001.patch

Adding patch that includes a change to the BlockManager.verifyReplication() method as well as adding new -setrep tests.

> "fs -setrep" should have better error message
> ---------------------------------------------
>
>                 Key: HDFS-328
>                 URL: https://issues.apache.org/jira/browse/HDFS-328
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Daniel Templeton
>              Labels: newbie
>         Attachments: HDFS-328.001.patch
>
>
> 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}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)