hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Replication
Date Wed, 15 Feb 2012 14:03:01 GMT
Ajay,

Replication is a per-file property.

To lower replication factor of existing files, run (as an HDFS
superuser, for a good measure):
$ hadoop fs -setrep -R 3 /

On Wed, Feb 15, 2012 at 5:39 PM, ajay.bhosle <ajay.bhosle@zapak.co.in> wrote:
> Hi,
>
>
>
> I have set replication as 1 in hdfs-site.xml as given below,
>
>
>
> property>
>
>     <name>dfs.replication</name>
>
>     <value>1</value>
>
>     <description>Default block replication.
>
>        The actual number of replications can be specified when the file is
> created.
>
>        The default is used if replication is not specified in create time.
>
>     </description>
>
>  </property>
>
>
>
> But I get the below errors when I retrieve the block report from hdfs. Can
> someone please help me if I am missing anything.
>
>
>
> “Under replicated blk_4884628009930930282_210741. Target Replicas is 3 but
> found 2 replica(s).”
>
>
>
> Thanks
>
> Ajay
>
>



-- 
Harsh J
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about

Mime
View raw message