You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Mohammad Mustaqeem <3m...@gmail.com> on 2013/05/08 10:15:10 UTC
Changing the replication factor of particular file
Hi,
Is there any method to change the replication factor of any particular
file.
Means that, if any file is not important then we should decrease its
replication factor and the file that is more important, we should increase
its replication factor.
--
*With regards ---*
*Mohammad Mustaqeem*,
M.Tech (CSE)
MNNIT Allahabad
9026604270
Re: Changing the replication factor of particular file
Posted by shashwat shriparv <dw...@gmail.com>.
hadoop dfs -setrep 1 filename
Add -r if you want to change replication recursively.
Usage: hdfs dfs -setrep [-R] <path>
hdfs dfs -setrep -w 3 -R /user/hadoop/dir1
-w is there if you want to wait till replication finished.
*Thanks & Regards *
∞
Shashwat Shriparv
On Wed, May 8, 2013 at 1:45 PM, Mohammad Mustaqeem
<3m...@gmail.com>wrote:
> Hi,
> Is there any method to change the replication factor of any particular
> file.
> Means that, if any file is not important then we should decrease its
> replication factor and the file that is more important, we should increase
> its replication factor.
>
> --
> *With regards ---*
> *Mohammad Mustaqeem*,
> M.Tech (CSE)
> MNNIT Allahabad
> 9026604270
>
Re: Changing the replication factor of particular file
Posted by shashwat shriparv <dw...@gmail.com>.
hadoop dfs -setrep 1 filename
Add -r if you want to change replication recursively.
Usage: hdfs dfs -setrep [-R] <path>
hdfs dfs -setrep -w 3 -R /user/hadoop/dir1
-w is there if you want to wait till replication finished.
*Thanks & Regards *
∞
Shashwat Shriparv
On Wed, May 8, 2013 at 1:45 PM, Mohammad Mustaqeem
<3m...@gmail.com>wrote:
> Hi,
> Is there any method to change the replication factor of any particular
> file.
> Means that, if any file is not important then we should decrease its
> replication factor and the file that is more important, we should increase
> its replication factor.
>
> --
> *With regards ---*
> *Mohammad Mustaqeem*,
> M.Tech (CSE)
> MNNIT Allahabad
> 9026604270
>