知道hadoop中数据节点的磁盘空间吗? [英] Know the disk space of data nodes in hadoop?
问题描述
是否有一种方法或任何命令可以用来了解每个数据节点的磁盘空间或总群集磁盘空间?
Is there a way or any command using which I can come to know the disk space of each datanode or the total cluster disk space?
我尝试了命令
dfs -du -h /
但是似乎我没有权限在许多目录中执行它,因此无法获取实际的磁盘空间.
but it seems that I do not have permission to execute it for many directories and hence cannot get the actual disk space.
推荐答案
从用户界面:
http://namenode:50070/dfshealth.html#tab-datanode
--->将为您提供有关datanode的所有详细信息.
---> which will give you all the details about datanode.
从命令行:
要获取每个数据节点的磁盘空间:
To get disk space of each datanode:
sudo -u hdfs hdfs dfsadmin -report
--->将为您提供整个HDFS和各个数据节点的详细信息,或者
---> which will give you the details of entire HDFS and the individual datanodes OR
sudo -u hdfs hdfs dfs -du -h /
--->这将为您提供根/
目录下每个文件夹的总磁盘使用情况
---> which will give you the total disk usage of each folder under root /
directory
这篇关于知道hadoop中数据节点的磁盘空间吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!