|
|
-
RE: file replicasUma Maheswara Rao G 2012-02-04, 12:27
Presently don't have such direct api available. May be you can write your own. Yes, below api can help.
________________________________ From: Alieh Saeedi [[EMAIL PROTECTED]] Sent: Saturday, February 04, 2012 4:04 PM To: [EMAIL PROTECTED] Subject: file replicas Thank you Is there a method which list for me files with n replicas or I myself must implement it? If so just FileSystem#getFileBlockLocations() can help me? Thanks in advance:-) ________________________________ From: Uma Maheswara Rao G <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Alieh Saeedi <[EMAIL PROTECTED]> Sent: Saturday, 4 February 2012, 13:36 Subject: RE: file replication 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 [[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>] Sent: Saturday, February 04, 2012 3:07 PM To: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> 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 |