hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: Is it possible to specify different replication factors for different files?
Date Wed, 22 Dec 2010 17:26:11 GMT
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