Re: Why dataOut is FileOutputStream?

2010-11-06 Thread Thanh Do
Thanks Eli, I got it now. On Fri, Nov 5, 2010 at 10:36 PM, Eli Collins wrote: > Hey Thanh, > > Data gets written in 64KB packets so there doesn't seem to be a need > to buffer it. > > Thanks, > Eli > > On Thu, Nov 4, 2010 at 2:58 PM, Thanh Do wrote: > > Hi all, > > > > When a datanode receive

Re: Why dataOut is FileOutputStream?

2010-11-05 Thread Eli Collins
Hey Thanh, Data gets written in 64KB packets so there doesn't seem to be a need to buffer it. Thanks, Eli On Thu, Nov 4, 2010 at 2:58 PM, Thanh Do wrote: > Hi all, > > When a datanode receive a block, the datanode > write the block into 2 streams on disk: > - the data stream (dataOut) > - the c

Why dataOut is FileOutputStream?

2010-11-04 Thread Thanh Do
Hi all, When a datanode receive a block, the datanode write the block into 2 streams on disk: - the data stream (dataOut) - the checksum stream (checksumOut) While the checksumOut is created with following code: this.checksumOut = new DataOutputStream(new BufferedOutputStream(