HDFS

Hadoop Distributed File System: hadoop分布式文件系统

hadoop hdfs分为三部分:

NameNode -> JobTracker

secondary NameNode

DataNode -> TaskTracker


hdfs commands

1
hdfs [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [COMMAND_OPTIONS]

user commands:

1
2
3
4
$ hdfs classpath

$ hdfs dfs # 参考 hadoop fs命令
...

admin commands:

1
2
$ hdfs balancer
...

debug commands:

1
2
3
$ hdfs verify

$ hdfs recoverLease