-Re: Issue with obtaining actual replication factor
George Kousiouris 2011-07-22, 10:45
One way would be through the fsck command and parsing the output
(troublesome, could also be a more specific api call for that that I am
not aware of). There you can see the replication factor that is set and
the actual replication status.
However in general after setting a new value the replication follows
this setting. It may take a while for this to happen (probably depending
on the background hadoop daemons and their refresh interval) but in the
end it does change.
On 7/22/2011 1:39 PM, Ivan Balashov wrote:
> Is there a way to make sure that file's replication factor has indeed
> been changed after FileSystem.setReplication call?
> The issue is that FileSystem.getFileStatus seems to return newly set
> value, and NOT actual replication status (actual number of file
> Could anyone suggest how we can get *actual* replication factor for a
> file, i.e. number of fully replicated file copies?
> - Ivan
Electrical and Computer Engineer
Division of Communications,
Electronics and Information Engineering
School of Electrical and Computer Engineering
Tel: +30 210 772 2546
Mobile: +30 6939354121
Fax: +30 210 772 2569
Email: [EMAIL PROTECTED]
National Technical University of Athens
9 Heroon Polytechniou str., 157 73 Zografou, Athens, Greece