hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Kousiouris <gkous...@mail.ntua.gr>
Subject Re: Issue with obtaining actual replication factor
Date Fri, 22 Jul 2011 10:45:17 GMT


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:
> Hi,
> 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
> copies).
> Could anyone suggest how we can get *actual* replication factor for a
> file, i.e. number of fully replicated file copies?
> Thanks!
> - Ivan



George Kousiouris
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: gkousiou@mail.ntua.gr
Site: http://users.ntua.gr/gkousiou/

National Technical University of Athens
9 Heroon Polytechniou str., 157 73 Zografou, Athens, Greece

View raw message