kafka 11 client 兼容 0.8的吗
答案:1 悬赏:0
解决时间 2021-01-10 18:24
- 提问者网友:寂寞梧桐
- 2021-01-10 04:09
kafka 11 client 兼容 0.8的吗
最佳答案
- 二级知识专家网友:末日狂欢
- 2021-01-10 05:27
因为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 introduce both the old 0.8 consumer APIs (both high-level ConsumerConnector and low-level SimpleConsumer) and the new Java consumer API respectively.
参照官方文档
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 introduce both the old 0.8 consumer APIs (both high-level ConsumerConnector and low-level SimpleConsumer) and the new Java consumer API respectively.
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯