hadoop.cheatsheet
· ☕ 4 min read
#-#
#-# Command line
#-#
#-# Namenode
Command Description
hadoop namenode -format Format HDFS filesystem from Namenode.
hadoop namenode -upgrade Upgrade the NameNode.
start-dfs.sh Start HDFS Daemons.
stop-dfs.sh Stop HDFS Daemons.
start-mapred.sh Start MapReduce Daemons.
stop-mapred.sh Stop MapReduce Daemons.
hadoop namenode -recover -force Recover namenode metadata after a cluster failure (may lose data).
#-# Health
Command Description
hadoop fsck / Filesystem check on HDFS.
hadoop fsck / -files Display files during check.