hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhenhua Guo <jen...@gmail.com>
Subject Re: Is it possible to specify different replication factors for different files?
Date Thu, 23 Dec 2010 16:33:05 GMT
Thanks!
I will try it.

Gerald

On Wed, Dec 22, 2010 at 12:26 PM, Harsh J <qwertymaniac@gmail.com> wrote:
> Hi,
>
> DFSClient.setReplication(pathStr, repFactor); will do it.
>
> http://hadoop.apache.org/hdfs/docs/r0.21.0/api/org/apache/hadoop/hdfs/DFSClient.html#setReplication(java.lang.String,
> short) is the API you're looking for.
>
> --
> Harsh J
> www.harshj.com
>

Mime
View raw message