A missing DataNode warning means the NameNode has stopped receiving heartbeats from a worker that should be part of the HDFS cluster. The failure can come from a stopped daemon, hostname mismatch, storage directory problem, or network path between the worker and NameNode.
Start with the NameNode report because it shows whether the node is dead, excluded, or decommissioning. Then inspect the worker daemon, Hadoop logs, and configured data directory before changing cluster membership files.
Avoid formatting or deleting DataNode storage while troubleshooting. Those actions can remove local block replicas and turn a heartbeat problem into a data recovery problem.
$ hdfs dfsadmin -report Live datanodes (2): Name: worker01.example.net:9866 Name: worker03.example.net:9866 Dead datanodes (1): Name: worker02.example.net:9866
$ jps 2481 DataNode 2610 NodeManager 2754 Jps
Missing DataNode output here usually means the worker daemon stopped or never started.
$ hdfs --daemon status datanode datanode is running as process 2481.
Related: How to view Hadoop daemon logs
$ hdfs getconf -confKey fs.defaultFS hdfs://master01.example.net:9000
$ hdfs getconf -confKey dfs.datanode.data.dir file:///data/hadoop/hdfs/data
$ hdfs --daemon stop datanode Stopping datanode
Related: How to restart Hadoop services
$ hdfs dfsadmin -report Live datanodes (3): Name: worker01.example.net:9866 Name: worker02.example.net:9866 Name: worker03.example.net:9866