P375 Hadoop管理工具
dfsadmin - 查询HDFS状态信息,管理HDFS。
bin/hadoop dfsadmin -help
查询HDFS基本信息
fsck - 检查HDFS中文件的健康状况,查找在所有datanode中都确实的块以及过多或过少副本的块
[root@hadoop-allinone-200-123 bin]# ./hadoop fsck /
Connecting to namenode via http://hadoop-allinone-200-123.wdcloud.locl:50070/fsck?ugi=root&path=%2F FSCK started by root (auth:SIMPLE) from /192.168.200.123 for path / at Mon Jan 23 02:00:51 EST 2017 文件副本过少(配置3个仅发现1个) /hbase/MasterProcWALs/state-00000000000000000026.log: Under replicated BP-1797344816-192.168.200.123-1479957392425:blk_1073741923_1099. Target Replicas is 3 but found 1 replica(s).
datanode块检测报告:
http://192.168.200.123:50075/blockScannerReport