使用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磁盤復制的大小是否包括在內?內部方法檔案沒有提供額外的細節。
uj5u.com熱心網友回復:
據一位同事說,答案是:
spaceConsumed = length * replicationFactor
但是,我沒有任何來源可以證明這一點。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/424066.html
