Support Questions

Find answers, ask questions, and share your expertise

Associate schema with Kafka topic

avatar

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!

    72409-screen-shot-2018-04-23-at-163401.png

1 ACCEPTED SOLUTION

avatar

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.

View solution in original post

1 REPLY 1

avatar

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.