'hadoop cluster: namenode stopping service after format the hdfs

After successfully formatted I get:

2022-05-04 15:49:01,051 INFO namenode.FSNamesystem: Stopping services started for active state
2022-05-04 15:49:01,051 INFO namenode.FSNamesystem: Stopping services started for standby state

then when I run

noor@m1:~$ start-all.sh
WARNING: Attempting to start all Apache Hadoop daemons as noor in 10 seconds.
WARNING: This is not a recommended production deployment configuration.
WARNING: Use CTRL-C to abort.
Starting namenodes on [m1]
Starting datanodes
Starting secondary namenodes [m2]
Starting resourcemanager
Starting nodemanagers
noor@m1:~$ jps
2499 DataNode
2745 ResourceManager
2874 NodeManager
3198 Jps

and in datanode at m2:

noor@m2:~$ jps
2165 Jps
2079 SecondaryNameNode

As you see datanode at m2 does not run



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source