标签:hadoop 命令
hadoop fsck / -files -blocks -locations
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
15/02/05 05:20:55 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Connecting to namenode via http://10.9.214.151:50070
FSCK started by hadoop (auth:SIMPLE) from /10.9.214.15 for path / at Thu Feb 05 05:20:57 UTC 2015
/ <dir>
Status: HEALTHY
Total size: 0 B
Total dirs: 1
Total files: 0
Total symlinks: 0
Total blocks (validated): 0
Minimally replicated blocks: 0
Over-replicated blocks: 0
Under-replicated blocks: 0
Mis-replicated blocks: 0
Default replication factor: 2
Average block replication: 0.0
Corrupt blocks: 0
Missing replicas: 0
Number of data-nodes: 3
Number of racks: 1
FSCK ended at Thu Feb 05 05:20:57 UTC 2015 in 3 milliseconds
hadoop dfsadmin -report
safemode是hdfs cluster在启动的时候所处于的状态,启动是nn要检查所有block的位置状态等信息,启动完成后就退出safemode。
hadoop dfsadmin -safemode enter
本文出自 “Linux和网络” 博客,谢绝转载!
标签:hadoop 命令
原文地址:http://haohaozhang.blog.51cto.com/9176600/1611886