Skip to content

Commit

Permalink
feat(kafka-rust): add avro support (#19843)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Oct 25, 2024
1 parent f37f54f commit 7f3bbc1
Show file tree
Hide file tree
Showing 7 changed files with 1,114 additions and 122 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ rust-update:
rust-version:
rustc --version

rustup-set-default-rust-version:
rustup default 1.80.1
rustup-update:
rustup self update
rustup-add:
Expand Down
4 changes: 2 additions & 2 deletions hm-kafka/kafka-client/kafka-c/avro-producer/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
int main(int argc, char **argv) {
const char *confluent_schema_registry_url =
"https://confluent-schema-registry.internal.hongbomiao.com";
const char *topic = "production.iot.device.json";
const char *schema_name = "production.iot.device.json-value";
const char *topic = "production.iot.device.avro";
const char *schema_name = "production.iot.device.avro-value";

rd_kafka_t *producer;
rd_kafka_conf_t *conf;
Expand Down
Loading

0 comments on commit 7f3bbc1

Please sign in to comment.