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

本文解答了关于HDFS写入过程中是否使用缓存阶段的问题。确认了HDFS客户端不将数据块缓存到本地文件系统,而是直接通过内存中的数据队列和确认队列将64KB的数据包流式传输到数据节点。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值