lensesio / fast-data-dev

Kafka Docker for development. Kafka, Zookeeper, Schema Registry, Kafka-Connect, , 20+ connectors
https://lenses.io
Apache License 2.0
2.02k stars 333 forks source link

Schema Registry - subjects/<subject>/versions/latest/schema gives 404 #73

Open arhantpanda opened 6 years ago

arhantpanda commented 6 years ago

Hello,

I am using the image version Kafka 1.0.1-L0 @ Landoop's Apache Kafka Distribution

When I try to call the following endpoint it gives a 404

/subjects/<subject>/versions/latest/schema
{"error_code":404,"message":"HTTP 404 Not Found"}

The below gives a valid response

/subjects/<subject>/versions/latest
{"subject":"table1-value","version":1,"id":4,"schema":"{\"type\":\"record\"}"}

How can I get the schema in a JSON format as mentioned here?

stheppi commented 6 years ago

You are supposed to replace <subject> with the actual topic name!

arhantpanda commented 6 years ago

Yes I have. table1-value is my topic name and I also see it on Schema Registry UI.

/subjects/table1-value/versions/latest - works /subjects/table1-value/versions/latest/schema - gives 404

stheppi commented 6 years ago

/subjects/table1-value/versions/latest/schema - has been added in the schema registry release 4.1+ . Older versions do not have the rout for the exrtra /schema. Fast data dev doesn't run the 4.1+ schema registry