且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“拒绝连接” Namenode-HDFS错误(Hadoop问题)

更新时间:2023-11-17 09:07:58

Check whether all your services are running JobTracker, Jps, NameNode. DataNode, TaskTracker by running jps command.

Try to run start them one by one:

./bin/stop-all.sh
./bin/hadoop-daemon.sh start namenode
./bin/hadoop-daemon.sh start jobtracker
./bin/hadoop-daemon.sh start tasktracker
./bin/hadoop-daemon.sh start datanode

If you're still getting the error, stop them again and clean your temp storage directory. The directory details are in the config file ./conf/core-site.xml and the run,

./bin/stop-all.sh
rm -rf /tmp/hadoop*
./bin/hadoop namenode -format

Check the logs in the ./logs folder.

tail -200 hadoop*jobtracker*.log
tail -200 hadoop*namenode*.log
tail -200 hadoop*datanode*.log

Hope it helps.