Wanghui-Huang / CQU_bigdata

重庆大学计算机学院“大数据课程群”实验及PPT
143 stars 40 forks source link

实验三hadoop 环境报 failed on connection exception #26

Closed a-fly-fly-bird closed 2 years ago

a-fly-fly-bird commented 3 years ago

小组成员: 谭勇 20194278 蔡为凯 20194264 赵苏博 20194274

报错信息

ls: Call From slaver1/127.0.0.1 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

解决方案

转载自:https://blog.csdn.net/wqetfg/article/details/50715541

查询信息中给出的网址,了解到,如果你的所有配置都是正确的,那么这个问题只能是 host,network,firewall。 在帮助文档中,我看到有这么一句话: Check that there isn't an entry for your hostname mapped to 127.0.0.1 or 127.0.1.1 in /etc/hosts (Ubuntu is notorious for this) 打开 master 中的 hosts 文件,查看是否有 127.0.0.1。 如果有,注释掉。 然后将 hdfs 环境重启,再次执行,报错消失。