Flume启动错误之:Bootstrap Servers must be specified

  今天测试项目的时候需要启动Flume,然而在启动时遇到了Bootstrap Servers must be specified错误,错误日志如下:

[kfk@bigdata-pro01 flume-1.7.0-bin]$ ./flume-kfk-start.sh

 

2018-11-01 15:00:50,099 (conf-file-poller-0) [ERROR - org.apache.flume.node.AbstractConfigurationProvider.loadSinks(AbstractConfigurationProvider.java:426)] Sink kafkaSink has been removed due to an error during configuration

org.apache.flume.conf.ConfigurationException: Bootstrap Servers must be specified

         at org.apache.flume.sink.kafka.KafkaSink.translateOldProps(KafkaSink.java:353)

         at org.apache.flume.sink.kafka.KafkaSink.configure(KafkaSink.java:295)

         at org.apache.flume.conf.Configurables.configure(Configurables.java:41)

         at org.apache.flume.node.AbstractConfigurationProvider.loadSinks(AbstractConfigurationProvider.java:411)

         at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:102)

         at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:141)

         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:1142)

         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

         at java.lang.Thread.run(Thread.java:745)

 

  解决方法:在配置的时候添加上bootstrap的指向,不是使用broke.list。如下图所示:

 

 Flume启动错误之:Bootstrap Servers must be specified_第1张图片

 


以上就是博主为大家介绍的这一板块的主要内容,这都是博主自己的学习过程,希望能给大家带来一定的指导作用,有用的还望大家点个支持,如果对你没用也望包涵,有错误烦请指出。如有期待可关注博主以第一时间获取更新哦,谢谢!同时也欢迎转载,但必须在博文明显位置标注原文地址,解释权归博主所有!

你可能感兴趣的:(疑难解答,Flume)