Register Schemas for the Kafka Topics
Register schemas for the IOT gateway and syndication Kafka topics .Registering the Kafka topic schema is beneficial in several ways. Schema Registry provides a centralized schema location, allowing you to stream records into topics without having to attach the schema to each record.
- Log into the node where you have access to the Schema Registry Server.
- Download the Data-Loader and unzip the contents.
Navigate to the Data-Loader directory:
Execute the following:
java -cp \ stream-simulator-jar-with-dependencies.jar \ hortonworks.hdf.sam.refapp.trucking.simulator.schemaregistry.TruckSchemaRegistryLoader \ $SCHEMA_REGISTRY_ENDPOINT_URL E.g: SCHEMA_REGISTRY_ENDPOINT_URL = http://SR_HOST::7788/api/v1