fast-data-dev icon indicating copy to clipboard operation
fast-data-dev copied to clipboard

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

Open arhantpanda opened this issue 7 years ago • 3 comments

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?

arhantpanda avatar Jun 21 '18 21:06 arhantpanda

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

stheppi avatar Jun 21 '18 21:06 stheppi

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

arhantpanda avatar Jun 22 '18 03:06 arhantpanda

/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

stheppi avatar Jun 22 '18 11:06 stheppi