2016-08-11 92 views
-1

命令:如何閱讀`Hadoop的dfsadmin -report`輸出

[[email protected] oozie]$ hadoop dfsadmin -report|head -n 100

輸出:

DEPRECATED: Use of this script to execute hdfs command is deprecated. 
Instead use the hdfs command for it. 

Configured Capacity: 44716605440 (41.65 GB) 
Present Capacity: 31614091245 (29.44 GB) 
DFS Remaining: 30519073792 (28.42 GB) 
DFS Used: 1095017453 (1.02 GB) 
DFS Used%: 3.46% 
Under replicated blocks: 657 
Blocks with corrupt replicas: 0 
Missing blocks: 0 
Missing blocks (with replication factor 1): 0 

------------------------------------------------- 
Live datanodes (1): 

Name: 10.0.2.15:50010 (sandbox.hortonworks.com) 
Hostname: sandbox.hortonworks.com 
Decommission Status : Normal 
Configured Capacity: 44716605440 (41.65 GB) 
DFS Used: 1095017453 (1.02 GB) 
Non DFS Used: 13102514195 (12.20 GB) 
DFS Remaining: 30519073792 (28.42 GB) 
DFS Used%: 2.45% 
DFS Remaining%: 68.25% 
Configured Cache Capacity: 0 (0 B) 
Cache Used: 0 (0 B) 
Cache Remaining: 0 (0 B) 
Cache Used%: 100.00% 
Cache Remaining%: 0.00% 
Xceivers: 4 
Last contact: Thu Aug 11 23:12:04 UTC 2016 

什麼是使用緩存%,非DFS採用專門???

回答

0

hdfs dfsadmin -report命令:

報告文件系統的基本信息和統計信息。可選標誌 可用於過濾顯示的數據節點列表。

..from Hadoop的

關於官方page

  1. 使用緩存%:

這取決於 「配置的緩存容量」。這是配置值的百分比。正如尚未配置爲高速緩存的任何空間,它被示出爲100%(在0 B 0 B)

    使用
  1. NonDFS:

它是使用計算下面的公式

NonDFS used = Configured Capacity - DFS Used - DFS Remaining

+0

要求解釋更多的使用緩存%: 我們如何配置它,以及如何增加或減少它。 我們如何計算「配置容量」? – Ritesh

+0

我已經下載了一個看起來類似的dfs報告文件。現在我需要將這些數據上傳到表格,任何想法讀取它們並將數據上傳到表格的最簡單方法是什麼? – CodingOwl