hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Zeyliger <phi...@cloudera.com>
Subject Re: Dynamically adjusting replication factor for a data block
Date Sun, 15 Nov 2009 17:48:43 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message