Spark Streaming 能否在仅指定 1 个 kafka 代理的情况下自动发现新的 kafka 代理?

Can Spark Streaming automatically discover new kafka brokers given 1 kafka broker only specified?

我有一个带有 300 个 kafka 代理的 spark 流应用程序 (host[101-301]:9092)。如果要添加新代理,比如 host302:9092,Spark Streaming 应用程序会自动发现此代理吗?或者我是否需要停止我的应用程序、更新配置并重新 运行 火花流应用程序?提前致谢!

不,您不需要重新配置和启动。

引用权威来源,例如
https://jaceklaskowski.gitbooks.io/apache-kafka/kafka-properties-bootstrap-servers.html 以下

bootstrap.server properties

Since these servers are just used for the initial connection to discover the full cluster membership (which may change dynamically), this list does not have to contain the full set of servers (you may want more than one, though, in case a server is down).