Run flume-ng agent -c conf -f conf/load_balancer_server.conf -n a1 -Dflume.root.logger=DEBUG,console, error:
org.apache.flume.FlumeException: Failed to set up server socket
at org.apache.flume.source.AvroSource.start(AvroSource.java:248)
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: org.jboss.netty.channel.ChannelException: Failed to bind to: node03/192.168.8.120:52020
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
at org.apache.avro.ipc.NettyServer.<init>(NettyServer.java:106)
at org.apache.flume.source.AvroSource.start(AvroSource.java:243)
… 9 more
Caused by: java.net.BindException: Address already in use
Reason: The last flume process has not been closed.
Execute jps to see 4191 Application, which is the process of flume. The reason is that when closing flume, I used Ctrl+Z, so I closed flume in the foreground, but the background process was not closed.
Solution: kill -9 4191. Also, next time, try to use Ctrl+C to close flume.
Similar Posts:
- [Solved] mybatis Multi-Module Error: Invalid bound statement (not found)
- com.jcraft.jsch.JSchException: Auth fail [How to Solve]
- [Solved] flink web ui Submit Task Error: Server Respoonse Message-Internal server error
- [Solved] Hadoop running jar package error: java.lang.exception: java.lang.arrayindexoutofboundsexception: 1
- [How to Solve] Exception starting filter struts2
- [Solved] Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- Java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment [Solved]
- [Solved] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive
- Error: Can’t find bundle for base name messages.AndroidJpsBundle, locale en_US
- [Solved] Invalid character found in method name. HTTP method names must be tokens