i first deployed pseudo distributed system , converted distributed , and formatted namnode , datanode had in pseudo distributed isn't connceting name node ps: namenode used pseud using namnode in distributed system
you need this:
bin/stop-all.sh (or stop-dfs.sh , stop-yarn.sh in 2.x series)
rm -rf /app/tmp/hadoop-your-username/*
bin/hadoop namenode -format
refer link: http://pages.cs.brandeis.edu/~cs147a/lab/hadoop-troubleshooting/