You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I’m working with Kafka in a multi-region setup, where I use replica-placement configurations within topic settings. I developed an internal tool using the segmentio/kafka-go package to automate topic creation in our pipeline whenever a branch is merged. The topics are created automatically based on YAML file configurations..
This configuration works smoothly.
However, we have a Kafka cluster where topics need to be created with the replica-placement option, and we have been doing it manually and we would like to automate it, follow the example;
I tried implementing this in code using the segmentio/kafka-go package, but it’s not working properly. I attempted to pass this JSON file into a Kafka.ConfigEntry object, and the code looks something like this:
However, I’m getting an error from the segmentio/kafka-go package:
Invalid Request: This most likely occurs because of a request being malformed by the client library or the message was sent to an incompatible broker. Check the broker logs for more details.
Currently, I’m working with Kafka in a multi-region setup, where I use replica-placement configurations within topic settings. I developed an internal tool using the segmentio/kafka-go package to automate topic creation in our pipeline whenever a branch is merged. The topics are created automatically based on YAML file configurations..
example
topic-config.yaml
This configuration works smoothly.
However, we have a Kafka cluster where topics need to be created with the replica-placement option, and we have been doing it manually and we would like to automate it, follow the example;
I tried implementing this in code using the segmentio/kafka-go package, but it’s not working properly. I attempted to pass this JSON file into a Kafka.ConfigEntry object, and the code looks something like this:
However, I’m getting an error from the segmentio/kafka-go package:
Invalid Request: This most likely occurs because of a request being malformed by the client library or the message was sent to an incompatible broker. Check the broker logs for more details.
output should be like this;
The
confluent.placement.constraints
option is within theConfigs
object, but it seems the library doesn’t support it.Supporting documentation
The text was updated successfully, but these errors were encountered: