在Ubuntu上监控HDFS可使用以下方法:
hdfs dfsadmin -report查看集群状态,hdfs dfs -df -h /查看根目录磁盘使用情况,hdfs dfs -count -q /查看根目录文件和目录数量等。jps命令可查看Hadoop相关进程是否正常运行。http://<namenode-host>:9870)和ResourceManager的Web界面(通常为http://<resourcemanager-host>:8088),查看集群状态和性能指标。