I have a working configuration of Hadoop 3.2.1 with one namenode and two datanodes. If I run
stop-dfs.sh hadoop namenode -format
Then start-d