flume报错记录:java.net.ConnectException:拒绝连接; For more details see: ......

220 阅读1分钟

持续创作,加速成长!这是我参与「掘金日新计划 · 10 月更文挑战」的第27天,点击查看活动详情

flume报错记录:java.net.ConnectException:** **拒绝连接; For more details see: wiki.apache.org/hadoop/Conn…


具体信息

java.net.ConnectException: Call From hadoop114/192.168.149.114 to hadoop114:8020 failed on connection exception: java.net.ConnectException:** 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

Caused by: java.net.ConnectException:拒绝连接

解决方案:

参考:zhuanlan.zhihu.com/p/460722371

8020:不一定就是8020 要查看自己的core-site.xml

cd /opt/module/hadoop-3.1.3/etc/hadoop/
cat core-site.xml

改成9820即可(flume-exec-hdfs.conf中的hdfs的端口改为和 core-site.xml中的信息一样即可)

其他该类bug的诊断:查看端口是否在进程当中