- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Associate schema with Kafka topic
- Labels:
-
Apache Kafka
-
Schema Registry
Created on ‎04-23-2018 03:40 PM - edited ‎08-18-2019 02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I'm using HDF and have:
- successfully created a schema (page_view) through the Schema Registry UI;
- created a Kafka topic named page_views.
I'd like to understand how do I now associate this schema to the topic.
The intention is to now create a SAM application with that Kafka topic as the source. When setting up the Kafka source component on the SAM application, the UI isn't able to get the associated schema from Schema Registry (screenshot attached).
This is how the topic was created:
/usr/hdf/current/kafka-broker/bin/kafka-topics.sh --create --zookeeper sandbox-hdf.hortonworks.com:2181 --replication-factor 1 --partitions 3 --topic page_views
I've also set the registry.url parameter under SAM's section on Ambari to http://sandbox-hdf.hortonworks.com:7788/api/v1
Any help would greatly appreciated!
Created ‎04-24-2018 09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the solution to this.
Just in case you run into the same problem, both schema and Kafka topic should have the exact same name.
Created ‎04-24-2018 09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the solution to this.
Just in case you run into the same problem, both schema and Kafka topic should have the exact same name.
