Re: using API to determine when async file copy is complete

2011-03-28 Thread Todd Lipcon
Hi Martin, Have a look at the waitForReplication() function in FsShell.java in hadoop-common. It does what you're looking for. -Todd On Mon, Mar 28, 2011 at 1:18 PM, Martin Serrano wrote: > Is there a way to determine how many complete replicas there are of a > file? That is, can I find out

using API to determine when async file copy is complete

2011-03-28 Thread Martin Serrano
Is there a way to determine how many complete replicas there are of a file? That is, can I find out that the async replication has completed? And how many replicas are complete? I'd like to do this via the Java API. Thanks, Martin