1. 程式人生 > >Flume啟動錯誤之:Bootstrap Servers must be specified

Flume啟動錯誤之:Bootstrap Servers must be specified

  今天測試專案的時候需要啟動Flume,然而在啟動時遇到了Bootstrap Servers must be specified錯誤,錯誤日誌如下:

[[email protected] 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。如下圖所示:

 

以上就是博主為大家介紹的這一板塊的主要內容,這都是博主自己的學習過程,希望能給大家帶來一定的指導作用,有用的還望大家點個支援,如果對你沒用也望包涵,有錯誤煩請指出。如有期待可關注博主以第一時間獲取更新哦,謝謝!同時也歡迎轉載,但必須在博文明顯位置標註原文地址,解釋權歸博主所有!