首页 > Web开发 > 详细

启动Flume报地址已存在错误解决方案

时间:2021-04-29 22:52:13      阅读:47      评论:0      收藏:0      [点我收藏+]

在运行Flume程序时出现以下错误:

2021-04-29 21:00:32,006 (lifecycleSupervisor-1-7) [INFO - org.apache.flume.source.NetcatSource.stop(NetcatSource.java:197)] Source stopping
2021-04-29 21:00:32,006 (lifecycleSupervisor-1-7) [ERROR - org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251)] Unable to start EventDrivenSourceRunner: { source:org.apache.flume.source.NetcatSource{name:r1,state:STOP} } - Exception follows.
org.apache.flume.FlumeException: java.net.BindException: 地址已在使用
    at org.apache.flume.source.NetcatSource.start(NetcatSource.java:171)
    at org.apache.flume.source.EventDrivenSourceRunner.start(EventDrivenSourceRunner.java:44)
    at org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:249)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.BindException: 地址已在使用
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
    at org.apache.flume.source.NetcatSource.start(NetcatSource.java:164)
    ... 9 more

话不多说,直接开干!

第一步:在linux上输入jps命令查看flume相关进程

jps

技术分享图片

 

第二步:杀死所有出现的Application进程

kill -9 10417 10249

第三步:重新运行Flume程序即可

启动Flume报地址已存在错误解决方案

原文:https://www.cnblogs.com/LzMingYueShanPao/p/14719658.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!