hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smarthr...@yahoo.co.in
Subject Re: Dynamically adjusting replication factor for a data block
Date Sun, 15 Nov 2009 17:53:51 GMT
Thanks Philip.
Also how about setting the replication factor at a block level ? 
Is there support for this in the current version of hdfs ?

- Hrishi



----- Original Message ----
From: Philip Zeyliger <philip@cloudera.com>
To: common-dev@hadoop.apache.org
Sent: Sun, November 15, 2009 12:48:43 PM
Subject: Re: Dynamically adjusting replication factor for a data block

On Sun, Nov 15, 2009 at 9:45 AM, <smarthrish@yahoo.co.in> wrote:

> This needs to be done manually.
> Is there a way to do this at runtime i.e. in the java code ?
>

Sure.  It's a method in the FileSystem class:

http://hadoop.apache.org/common/docs/r0.18.3/api/org/apache/hadoop/fs/FileSystem.html#setReplication%28org.apache.hadoop.fs.Path,%20short%29

-- Philip



      

Mime
View raw message