请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

图片描述
这是我的配置

启动命令
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.

正在回答 回答被采纳积分+3

1回答

提问者 ABC简简简简 2020-09-01 11:39:12

[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 回复 有任何疑惑可以回复我~
  • 你这个要注意下启动顺序,41414这个应该是下游的端口吧
    回复 有任何疑惑可以回复我~ 2020-09-01 11:42:25
  • 提问者 ABC简简简简 回复 Michael_PK #2
    [ERROR - org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:253)] Unable to start SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@7d9b0a35 counterGroup:{ name:null counters:{} } } - Exception follows.
    
    org.jboss.netty.channel.ChannelException: Failed to bind to: /192.168.110.146:41414
    
    Caused by: java.net.BindException: Cannot assign requested address
    
    
    使用pull方式整合时,应先启动flume、再启动spark app。顺序应是没问题的。
    回复 有任何疑惑可以回复我~ 2020-09-01 14:16:50
  • Michael_PK 回复 提问者 ABC简简简简 #3
    你听下视频,哪个先启动,都有讲的,按照视频中我是先干啥的你也跟着干啥
    回复 有任何疑惑可以回复我~ 2020-09-01 14:30:18
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信