hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uma Maheswara Rao G <mahesw...@huawei.com>
Subject RE: file replication
Date Sat, 04 Feb 2012 10:06:42 GMT

1- How can I replicate an existing file by an application?
[Uma Ans] : you can just set the replication factor high.
             use the following API for resetting the replication factor from application.
            FileSystem#setReplication

2- Where is the number of replicas for each file saved? I mean how can I find out number of
replicas for a specific file?
Regards
[Uma Ans] : FileSystem#getFileBlockLocations should give you the locations where it stored.

Regards,
Uma
________________________________________
From: Alieh Saeedi [aliehsaeedi@yahoo.com]
Sent: Saturday, February 04, 2012 3:07 PM
To: hdfs-user@hadoop.apache.org
Subject: file replication

1- How can I replicate an existing file by an application?
2- Where is the number of replicas for each file saved? I mean how can I find out number of
replicas for a specific file?
Regards

Mime
View raw message