Skip to main content
This document introduces how to get started with creating an JDBC Clickhouse sink connector and get it up and running.

Quick start

Prerequisites

The prerequisites for connecting an JDBC Clickhouse sink connector to external systems include:
  1. Start a Clickhouse server. You can create a single-node Clickhouse cluster by executing this command:
  1. Create a table, you can use ./clickhouse client to open a SQL shell.

1. Create a connector

The following command shows how to use pulsarctl to create a builtin connector. If you want to create a non-builtin connector, you need to replace --sink-type jdbc-clickhouse with --archive /path/to/pulsar-io-jdbc-clickhouse.nar. You can find the button to download the nar package at the beginning of the document.
If you are a StreamNative Cloud user, you need set up your environment first.
The --sink-config is the minimum necessary configuration for starting this connector, and it is a JSON string. You need to substitute the relevant parameters with your own. If you want to configure more parameters, see Configuration Properties for reference.
You can also choose to use a variety of other tools to create a connector:

2. Send messages to the topic

If your connector is created on StreamNative Cloud, you need to authenticate your clients. See Build applications using Pulsar clients for more information.
Note that the current implementation supports structured types of schemas, such as Avro, JSON, Protobuf, Protobuf_native, etc.

3. Check data on clickhouse

Configuration Properties

The configuration of the JDBC sink connector has the following properties.