在webhdfs中,长度和空间消耗之间的区别是什么



使用webhdfs,我们可以获得目录/文件的内容摘要。

然而,以下属性对我来说并不清楚:

"length":
{
"description": "The number of bytes used by the content.",
"type"       : "integer",
"required"   : true
}

"spaceConsumed":
{
"description": "The disk space consumed by the content.",
"type"       : "integer",
"required"   : true
}

它们之间到底有什么区别?spaceConsumed是否包括磁盘复制的大小?内部方法文档没有提供其他详细信息。

根据一位同事的说法,答案是:

spaceConsumed = length * replicationFactor

然而,我没有任何来源来证明这一点

最新更新