Flume-ng运行出错: Caused by: java.net.BindException: 地址已在使用org.apache.flume.lifecycle.LifecycleSupervis

Flume下杀死collector再恢复出现错误

2019-08-29 15:57:52,578 (lifecycleSupervisor-1-5) [ERROR - org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251)] Unable to start EventDrivenSourceRunner: { source:Avro source r1: { bindAddress: chun5, port: 52020 } } - Exception follows.
org.apache.flume.FlumeException: Failed to set up server socket

Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: chun5/192.168.228.142:52020
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
at org.apache.avro.ipc.NettyServer.(NettyServer.java:106)
at org.apache.flume.source.AvroSource.start(AvroSource.java:202)
… 9 more
Caused by: java.net.BindException: 地址已在使用

出现这个问题是因为关闭程序的时候用的ctrl+c:是把进程挂起,进程并没有被关闭,所以需要把进程杀死

查看进程:jps
13536 NodeManager
18130 Application
13429 DataNode
18629 Application
18921 Jps
7883 QuorumPeerMain

把application杀死

kill -9 18629
kill -9 18130

如果想把进程关闭用ctrl+c(进程会被强制关闭)

你可能感兴趣的:(遇到过的BUG)