confluent-platform

Is there a way to produce Kafka messages with headers using Kafka Confluent REST API?

拜拜、爱过 提交于 2020-08-19 10:24:58
问题 I'm trying to send messages to Kafka with some custom headers, but I could't find a way to do it. According to the documatation, The POST /topics/(string: topic_name) API does not have a way to attach custom headers to messages. Does anyone know a way to send Kafka messages with custom headers through the confluent Kafka REST API? Here is my sample request body I sent to the REST proxy POST /topics/stream.mycustomtopic { "records": [{ "value": "{\"myFirstKey\":\"myFirstValue\"}" }] } 回答1: You

Is there a way to produce Kafka messages with headers using Kafka Confluent REST API?

落花浮王杯 提交于 2020-08-19 10:24:36
问题 I'm trying to send messages to Kafka with some custom headers, but I could't find a way to do it. According to the documatation, The POST /topics/(string: topic_name) API does not have a way to attach custom headers to messages. Does anyone know a way to send Kafka messages with custom headers through the confluent Kafka REST API? Here is my sample request body I sent to the REST proxy POST /topics/stream.mycustomtopic { "records": [{ "value": "{\"myFirstKey\":\"myFirstValue\"}" }] } 回答1: You

Kafka - Controller Broker

自古美人都是妖i 提交于 2020-08-10 19:40:58
问题 I come across this phrase from https://niqdev.github.io/devops/kafka/ and https://livebook.manning.com/book/kafka-streams-in-action/chapter-2/109 (Kafka Streams in Action ) The controller broker is responsible for setting up leader/follower relationships for all partitions of a topic. If a Kafka node dies or is unresponsive (to ZooKeeper heartbeats), all of its assigned partitions (both leader and follower) are reassigned by the controller broker. I think it is not correct assignment of

Kafka - Controller Broker

泄露秘密 提交于 2020-08-10 19:38:55
问题 I come across this phrase from https://niqdev.github.io/devops/kafka/ and https://livebook.manning.com/book/kafka-streams-in-action/chapter-2/109 (Kafka Streams in Action ) The controller broker is responsible for setting up leader/follower relationships for all partitions of a topic. If a Kafka node dies or is unresponsive (to ZooKeeper heartbeats), all of its assigned partitions (both leader and follower) are reassigned by the controller broker. I think it is not correct assignment of

Kafka - Controller Broker

别说谁变了你拦得住时间么 提交于 2020-08-10 19:38:21
问题 I come across this phrase from https://niqdev.github.io/devops/kafka/ and https://livebook.manning.com/book/kafka-streams-in-action/chapter-2/109 (Kafka Streams in Action ) The controller broker is responsible for setting up leader/follower relationships for all partitions of a topic. If a Kafka node dies or is unresponsive (to ZooKeeper heartbeats), all of its assigned partitions (both leader and follower) are reassigned by the controller broker. I think it is not correct assignment of