Close the file after you write one block, the close is synchronous. On Tue, May 12, 2009 at 11:50 PM, Xie, Tao <xietao1...@gmail.com> wrote:
> > DFSOutputStream.writeChunk() enqueues packets into data queue and after > that > it returns. So write is asynchronous. > > I want to know the total actual time of HDFS executing the write operation > (start from writeChunk() to the time that each replication is written on > disk). How can get that time? > > Thanks. > > -- > View this message in context: > http://www.nabble.com/How-can-I-get-the-actual-time-for-one-write-operation-in-HDFS--tp23516363p23516363.html > Sent from the Hadoop core-user mailing list archive at Nabble.com. > > -- Alpha Chapters of my book on Hadoop are available http://www.apress.com/book/view/9781430219422 www.prohadoopbook.com a community for Hadoop Professionals