Create Data Source
Define a new external data source.Syntax
Parameters
A unique name for the data source to be created.
The type of data source. Currently only
kafka is supported.Connection settings and configuration options for the data source.
Options for Kafka Data Sources
Kafka bootstrap servers (comma-separated list).
Regular expressions matching Kafka topics to read (comma-separated list).
Kafka consumer group ID.
Security protocol:
'ssl' or 'plaintext'. The default is 'ssl'.Regular expressions matching schema names to accept (comma-separated list).
Regular expressions matching schema names to ignore (comma-separated list).
Regular expressions matching table names to ignore (comma-separated list).
Prefix to remove from schema names.
Prefix to add to schema names.
Set a new target schema for tables originating in the
public schema. For these tables, add_schema_prefix will not be added to the target schema if map_public_schema is set.Name of pre-defined configuration.
Synchronization Process
The new data source starts out in synchronizing mode, which pauses periodic transforms and running external SQL. After no new snapshot records have been received for a significant period of time, the message “source snapshot complete (deadline exceeded)” will be written to the log.
- Stop the Metadb server
- Run
metadb endsync - Start the Metadb server again
Example
Createsensor as a kafka data source:
Alter Data Source
Change the configuration of an existing data source.Syntax
Parameters
The name of an existing data source.
Connection settings and configuration options to modify. Use
add, set, or drop to specify the operation.Example
Change the consumer group:Drop Data Source
Remove a data source configuration.Syntax
Parameters
The name of an existing data source.
Example
Drop a data source:List Data Sources
View all configured data sources:See Also
Data Mappings
Transform JSON data with data mappings
System Commands
View system status and configuration
