# How to use HStream connectors with ClickHouse

TODO

# Clickhouse Connector

connector options and default value for clickhouse includes:

username = "default"
password = ""
host = "127.0.0.1"
port = 9000
database = "default"
1
2
3
4
5

An example to create a clickhouse connector which subscribes from stream source and write data to clickhouse looks like:

CREATE SINK CONNECTOR mysql WITH (type = clickhouse, host = "127.0.0.1", port = 9000, stream = source);
1

The clickhouse table name will be the same as the stream name.