[improvement](routine-load) Make routine load work with old kafka version (#7630)
Co-authored-by: caiconghui1 <caiconghui1@jd.com>
This commit is contained in:
@ -77,6 +77,7 @@ Status KafkaDataConsumer::init(StreamLoadContext* ctx) {
|
||||
RETURN_IF_ERROR(set_conf("auto.offset.reset", "error"));
|
||||
RETURN_IF_ERROR(set_conf("api.version.request", "true"));
|
||||
RETURN_IF_ERROR(set_conf("api.version.fallback.ms", "0"));
|
||||
RETURN_IF_ERROR(set_conf("broker.version.fallback", config::kafka_broker_version_fallback));
|
||||
|
||||
for (auto& item : ctx->kafka_info->properties) {
|
||||
if (starts_with(item.second, "FILE:")) {
|
||||
|
||||
Reference in New Issue
Block a user