在webhdfs中,length和spaceConsumed有什么区别?
In webhdfs, what is the difference between length and spaceConsumed?
使用webhdfs we can get the content summary of a directory/file.
但是,我不清楚以下属性:
"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
磁盘复制的大小是否包括在内?内部 method documentation 未提供更多详细信息。
根据同事的说法,答案是:
spaceConsumed = length * replicationFactor
但是,我没有任何资料可以证明。
使用webhdfs we can get the content summary of a directory/file.
但是,我不清楚以下属性:
"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
磁盘复制的大小是否包括在内?内部 method documentation 未提供更多详细信息。
根据同事的说法,答案是:
spaceConsumed = length * replicationFactor
但是,我没有任何资料可以证明。