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:拒绝连接
解决方案
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的诊断:查看端口是否在进程当中
结束!