如何读取`hadoop dfsadmin-report`输出

j8ag8udp  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(157)

命令: [hdfs@sandbox 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

什么是cache used%,非dfs used specially???

pengsaosao

pengsaosao1#

hdfs dfsadmin -report 命令:
报告基本的文件系统信息和统计信息。可选标志可用于筛选显示的数据节点列表。
…来自hadoop的官方页面
关于,
缓存已用%:
它取决于“配置的缓存容量”。它是配置值的百分比。由于没有为缓存配置任何空间,因此显示为100%(0 b,共0 b)
使用的非文件:
计算公式如下: NonDFS used = Configured Capacity - DFS Used - DFS Remaining

相关问题