Schema Registry
The command is used for creating a schema. The schema’s definition is specified with JSON format
Schema can be created by two ways.
Example:
- Specify the schema file path.
Example:
# bin/kuiper create schema protobuf schema1 '{"name": "schema1","file": "file:///tmp/aschema.proto"}'
This command creates a schema named schema1
whose content is provided by field in the json. The file will be copied into etc/schemas/protobuf
and renamed to `schema1.proto.
- schema_type:schema type,the only available type now is
protobuf
。 - schema_name:The unique name of the schema which is also the name of the schema file.
The command is used for displaying all schemas defined in the server.
# bin/kuiper show schemas protobuf
schema2
The command prints the detailed definition of a schema.
describe schema $schema_type $schema_name
Example:
The command drops the schema. The loaded schema in rules can continue to use until rules restart.
drop schema $schema_type $schema_name
Schema schema1 is dropped.