is dfsclient caches the data block to local disk before writing?

Question:

Is staging still used in hdfs when writing the data? This doubt arose when I was going through the hdfs documents. 
ref :http://hadoop.apache.org/hdfs/docs/current/hdfs_design.html#Staging

I believe dfsclient does not cache the datablock to local fs (as the document says) but it does streaming of 64KB packets to the datanode and caches the packets of current block only in memory via dataqueue and ackqueue.Is the document needs to be corrected or my understanding is wrong?

Answer:

DFS client does not write the data to local disk first. Instead, it streams data directly to the datanodes in the write pipeline. I will update the document.


你可能感兴趣的:(is dfsclient caches the data block to local disk before writing?)