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 "Vladimir Barinov (JIRA)" <ji...@apache.org> on 2013/04/18 15:13:17 UTC

[jira] [Updated] (HDFS-4711) Can not change replication factor of file during moving or deleting.

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

Vladimir Barinov updated HDFS-4711:
-----------------------------------

    Description: 
I don't know is it a feature or a bug. 
According to hdfs dfs -help we can use key -D to set specific options for action;
When we copying or uploading file to hdfs we can override replication factor with -D dfs.replication=N. That's works well.
But it doesn't work for moving or removing(to trash) file.
Steps to reproduce:
Uploading file
hdfs dfs -put somefile /tmp/somefile
Copying with changing replication:
hdfs dfs -D dfs.replication=1 -mv /tmp/somefile /tmp/somefile2

  was:
I don't know is it a feature or a bug. 
According to hdfs dfs -help we can use key -D to set specific options for action;
When we copying or uploading file to hdfs we can override replication factor with -D dfs.replication=N. That's works well.
But it doesn't work for moving or removing(to trash) file.
Step to reproduce:
Uploading file
hdfs dfs -put somefile /tmp/somefile
Copying with changing replication:
hdfs dfs -D dfs.replication=1 -mv /tmp/somefile /tmp/somefile2

    
> Can not change replication factor of file during moving or deleting.
> --------------------------------------------------------------------
>
>                 Key: HDFS-4711
>                 URL: https://issues.apache.org/jira/browse/HDFS-4711
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Vladimir Barinov
>            Priority: Minor
>
> I don't know is it a feature or a bug. 
> According to hdfs dfs -help we can use key -D to set specific options for action;
> When we copying or uploading file to hdfs we can override replication factor with -D dfs.replication=N. That's works well.
> But it doesn't work for moving or removing(to trash) file.
> Steps to reproduce:
> Uploading file
> hdfs dfs -put somefile /tmp/somefile
> Copying with changing replication:
> hdfs dfs -D dfs.replication=1 -mv /tmp/somefile /tmp/somefile2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira