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


具体信息

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: 拒绝连接

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

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

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

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

解决方案:

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

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

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

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

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

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

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