kafka 11 client 兼容 0.8的吗
发布网友
发布时间:2022-04-25 15:49
我来回答
共2个回答
热心网友
时间:2023-08-02 03:58
因为0.9 之后的kafka使用了新的consumer API进行消费,配置bootstrap-server。旧API虽然兼容,但是会被逐渐取代。
参照官方文档
2.2 Consumer API
As of the 0.9.0 release we have added a new Java consumer to replace our existing high-level ZooKeeper-based consumer and low-level consumer APIs. This client is considered beta quality. To ensure a smooth upgrade path for users, we still maintain the old 0.8 consumer clients that continue to work on an 0.9 Kafka cluster. In the following sections we introce both the old 0.8 consumer APIs (both high-level ConsumerConnector and low-level SimpleConsumer) and the new Java consumer API respectively.
热心网友
时间:2023-08-02 03:58
兼容。
网页链接