Adding schemas to the Schema Registry

Learn how to add new schemas to Schema Registry so that you ensure data consistency across your data pipeline.

Schema Registry provides a shared repository for your schemas to ensure that your data is accessible across the data pipeline. For the Business Intelligence at Scale Pattern, you must create the following two schemas using the Schema Regisrty files that you downloaded as part of the pattern artifacts:

  • WeatherCurrent
  • WeatherForecast
  1. Log in to the CDP web interface.
  2. Go to Management Console > Data Hub Clusters and select the CMM cluster that you created earlier.
  3. Click Schema Registry under the Services section.
    The All Schemas page is displayed.
  4. Click .
    The Add New Schema page is displayed.
  5. Add the schema metadata as follows:
    Field nameDescription and values
    NAME Used as a key to look up schemas. Specify WeatherCurrent and WeatherForecast if you are trying the Business Intelligence at Scale pattern.
    DESCRIPTION A short description of the schema. For example, "Schema for getting the current weather data".
    TYPE The schema format. Select Avro schema provider if you are trying the Business Intelligence at Scale pattern.
    SCHEMA GROUP To group schemas in any logical order. Specify Kafka if you are trying the Business Intelligence at Scale pattern.
    COMPATIBILITY To set the compatibility policy for the schema. Once set, this cannot be changed. Select BACKWARD if you are trying the Business Intelligence at Scale pattern.
  6. To allow schema to evolve over time by creating multiple versions, select the Evolve option.
  7. Upload the current and forecast weather schemas that you downloaded as part of the pattern artifacts by clicking Browse in the SCHEMA TEXT area.
  8. Click SAVE.