“拒绝连接” Namenode-HDFS错误(Hadoop问题) [英] "Connection refused" Error for Namenode-HDFS (Hadoop Issue)

查看:2568
本文介绍了“拒绝连接” Namenode-HDFS错误(Hadoop问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们看到使用 jps 命令时,所有节点都已启动并运行,但仍然无法连接到hdfs文件系统。每当我点击Hadoop Namenode localhost:8020页面上的浏览文件系统,我得到的错误是拒绝连接 。此外我已经尝试格式化并重新启动namenode,但仍然存在错误。任何人都可以请我帮忙解决这个问题。 检查您的所有服务是否正在运行 JobTracker,Jps ,NameNode。 DataNode,TaskTracker 通过运行 jps 命令。



尝试运行启动它们一个一:

  ./ 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

如果仍然出现错误,请再次停止它们并清理临时存储目录。目录详细信息位于配置文件 ./ conf / core-site.xml 中,并运行,

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

检查 ./ logs 文件夹中的日志。

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

希望它有帮助。


All my nodes are up and running when we see using jps command, but still I am unable to connect to hdfs filesystem. Whenever I click on Browse the filesystem on the Hadoop Namenode localhost:8020 page, the error which i get is Connection Refused. Also I have tried formatting and restarting the namenode but still the error persist. Can anyone please help me solving this issue.

解决方案

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.

这篇关于“拒绝连接” Namenode-HDFS错误(Hadoop问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆