附书代码Github工程:https://github.com/Shadow-Hunter-X
HDFS命令
- HDFS命令大全
Usage: hdfs [–config confdir] COMMAND where COMMAND is one of:
命令 | 说明 |
---|---|
dfs | 执行hadoop支持的文件系统命令run a filesystem command on the file systems supported in Hadoop. |
namenode -format | 格式化文件系统format the DFS filesystem |
secondarynamenode | 启用secondary namenode服务 run the DFS secondary namenode |
namenode | 启用namenode服务 run the DFS namenode |
journalnode | 启用journalnode服务 run the DFS journalnode |
zkfc | 启用 ZK 备援控制驻守服务 run the ZK Failover Controller daemon |
datanode | 启用 datanode服务 run a DFS datanode |
dfsadmin | 启用 DFS admin客户端 run a DFS admin client |
haadmin | 启用 DFS HA admin 客户端 run a DFS HA admin client |
fsck | 启用 DFS 文件系统检查组件 run a DFS filesystem checking utility |
balancer | 启用 集群负载均衡工具 run a cluster balancing utility |
jmxget | get JMX exported values from NameNode or DataNode. |
oiv | 应用脱机fsimage查看器 apply the offline fsimage viewer to an fsimage |
oev | 应用脱机编辑查看器 apply the offline edits viewer to an edits file |
fetchdt | 从NameNode分发一个代理token fetch a delegation token from the NameNode |
getconf | 获取配置信息 get config values from configuration |