【问题标题】:Override properties in Kafka Connect覆盖 Kafka Connect 中的属性
【发布时间】:2021-11-28 11:26:11
【问题描述】:

我需要使用 Mongo Connect 覆盖一些属性。我在 connect-distributed.properties 中添加了行 connector.client.config.override.policy=ALL 就像在这个教程中 https://debezium.io/documentation/faq/#how_to_enlarge_the_maximum_size_of_the_message_delivered_to_kafka

但在配置中添加选项 producer.override.max.request.size 后,我就开始了

The 'None' policy does not allow 'max.request.size' to be overridden in the connector configuration.

可能是什么错误?

【问题讨论】:

  • 您是否重新启动了 Connect 集群?属性文件只在启动时读取
  • 是的。我使用 Confluent 的平台。我更改了文件,重新启动了服务器,但发现异常
  • 如果你已经正确设置了值,那么错误不应该说你正在使用'None' policy

标签: apache-kafka apache-kafka-connect


【解决方案1】:

connect-distributed.properties中,需要将connector.client.config.override.policy配置为All

参考:https://docs.confluent.io/platform/current/connect/references/allconfigs.html#override-the-worker-configuration

【讨论】:

    猜你喜欢
    • 2021-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-19
    • 2017-10-25
    • 2018-06-09
    相关资源
    最近更新 更多