简体   繁体   中英

How do I tell a topic on confluence cloud to use a specific schema programmatically?

So I know how to create topics on Confluent Cloud with the confluent_kafka AdminClient instance but I'm not sure how to set the topic's message schema programmatically? To clarify, I have the schema I want to use saved locally in an avro schema file(.avsc)

Use the AdminClient to create the topic and then use the SchemaRegistryClient to register the schema for the topic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM