Unable to start SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor

来源:9-7 -Pull方式整合之概述

ABC简简简简

2020-09-01

图片描述
这是我的配置

启动命令
flume-ng agent --name simple-agent --conf $FLUME_HOME/conf --conf-file $FLUME_HOME/conf/flume_pull_streaming.conf -Dflume.root.logger=INFO,console

启动报错
2020-09-01 11:36:32,691 (lifecycleSupervisor-1-2) [INFO - org.apache.flume.source.NetcatSource.start(NetcatSource.java:169)] Created serverSocket:sun.nio.ch.ServerSocketChannelImpl[/192.168.110.197:44444]
2020-09-01 11:36:32,895 (lifecycleSupervisor-1-1) [ERROR - org.apache.flume.lifecycle.LifecycleSupervisorMonitorRunnable.run(LifecycleSupervisor.java:253)]UnabletostartSinkRunner:policy:org.apache.flume.sink.DefaultSinkProcessor@4172e9eacounterGroup:name:nullcounters:−Exceptionfollows.org.jboss.netty.channel.ChannelException:Failedtobindto:/192.168.110.146:41414atorg.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:106)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:119)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:74)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:68)atorg.apache.spark.streaming.flume.sink.SparkSink.start(SparkSink.scala:90)atorg.apache.flume.sink.DefaultSinkProcessor.start(DefaultSinkProcessor.java:46)atorg.apache.flume.SinkRunner.start(SinkRunner.java:79)atorg.apache.flume.lifecycle.LifecycleSupervisorMonitorRunnable.run(LifecycleSupervisor.java:253)] Unable to start SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@4172e9ea counterGroup:{ name:null counters:{} } } - Exception follows. org.jboss.netty.channel.ChannelException: Failed to bind to: /192.168.110.146:41414 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272) at org.apache.avro.ipc.NettyServer.<init>(NettyServer.java:106) at org.apache.avro.ipc.NettyServer.<init>(NettyServer.java:119) at org.apache.avro.ipc.NettyServer.<init>(NettyServer.java:74) at org.apache.avro.ipc.NettyServer.<init>(NettyServer.java:68) at org.apache.spark.streaming.flume.sink.SparkSink.start(SparkSink.scala:90) at org.apache.flume.sink.DefaultSinkProcessor.start(DefaultSinkProcessor.java:46) at org.apache.flume.SinkRunner.start(SinkRunner.java:79) at org.apache.flume.lifecycle.LifecycleSupervisorMonitorRunnable.run(LifecycleSupervisor.java:253)]UnabletostartSinkRunner:policy:org.apache.flume.sink.DefaultSinkProcessor@4172e9eacounterGroup:name:nullcounters:Exceptionfollows.org.jboss.netty.channel.ChannelException:Failedtobindto:/192.168.110.146:41414atorg.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:106)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:119)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:74)atorg.apache.avro.ipc.NettyServer.<init>(NettyServer.java:68)atorg.apache.spark.streaming.flume.sink.SparkSink.start(SparkSink.scala:90)atorg.apache.flume.sink.DefaultSinkProcessor.start(DefaultSinkProcessor.java:46)atorg.apache.flume.SinkRunner.start(SinkRunner.java:79)atorg.apache.flume.lifecycle.LifecycleSupervisorMonitorRunnable.run(LifecycleSupervisor.java:251)
at java.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)atjava.util.concurrent.ScheduledThreadPoolExecutorRunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutorRunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutor301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor301(ScheduledThreadPoolExecutor.java:180)atjava.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)Causedby:java.net.BindException:Cannotassignrequestedaddressatsun.nio.ch.Net.bind0(NativeMethod)atsun.nio.ch.Net.bind(Net.java:433)atsun.nio.ch.Net.bind(Net.java:425)atsun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)atsun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)atorg.jboss.netty.channel.socket.nio.NioServerBossWorker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.BindException: Cannot assign requested address 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 org.jboss.netty.channel.socket.nio.NioServerBossWorker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)Causedby:java.net.BindException:Cannotassignrequestedaddressatsun.nio.ch.Net.bind0(NativeMethod)atsun.nio.ch.Net.bind(Net.java:433)atsun.nio.ch.Net.bind(Net.java:425)atsun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)atsun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)atorg.jboss.netty.channel.socket.nio.NioServerBossRegisterTask.run(NioServerBoss.java:193)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)
at org.jboss.netty.channel.

写回答

1回答

ABC简简简简

提问者

2020-09-01

[ERROR - org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:253)] Unable to start SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@4172e9ea counterGroup:{ name:null counters:{} } } - Exception follows.

org.jboss.netty.channel.ChannelException: Failed to bind to: /192.168.110.146:41414


无法启动sink ?有么有遇到相同问题的同学


0
7
Michael_PK
回复
ABC简简简简
你先查看你这个端口,先给他干掉,然后重来
2020-09-01
共7条回复

Spark Streaming实时流处理项目实战

Flume+Kafka+Spark Streaming 构建通用实时流处理平台

1404 学习 · 571 问题

查看课程