The schema defines the columns of a Kafka table and the data type of each column. You
define it on the Schema Definition tab of the Kafka table
editor.
In the Streaming SQL Console, click Projects in the left
navigation pane, and click the name of your project.
The project opens, with the Explorer panel on the left.
To open the Streaming SQL Console, see Accessing Cloudera SQL Stream Builder.
In the Explorer, click the Kafka table, or create one with
New Kafka Table.
Click the Schema Definition tab.
Enter the schema in the editor, or click Detect Schema for a JSON
topic.
Cloudera SQL Stream Builder (SSB) displays Detecting schema... while it reads messages. When it
finishes, it fills in the editor and displays a notification that the schema was
imported.
Check the status.
The tab displays Schema is valid or Schema is invalid. Fix
the errors that it reports.