Clickhouse file sink connector
Generate the clickhouse data file with the clickhouse-local program, and then send it to the clickhouse server, also call bulk load. This connector only support clickhouse table which engine is 'Distributed'.And internal_replication option should be true. Supports Batch and Streaming mode.
"/tmp/nexus/clickhouse-local/file"
ClickHouse cluster address, the format is host:port , allowing multiple hosts to be specified. Such as "host1:8123,host2:8123" .
The ClickHouse database
The table name
ClickHouse user username
ClickHouse user password
When ClickhouseFile split data, which node to send data to is a problem, the default is random selection, but the 'sharding_key' parameter can be used to specify the field for the sharding algorithm.
The address of the clickhouse-local program on the spark node. Since each task needs to be called, clickhouse-local should be located in the same path of each spark node.
Specifies the method used to transfer files, the default is scp, optional scp and rsync
Because Nexus need to use scp or rsync for file transfer, Nexus need clickhouse server-side access. If each spark node and clickhouse server are configured with password-free login, you can configure this option to true, otherwise you need to configure the corresponding node password in the node_pass configuration
Used to save the addresses and corresponding passwords of all clickhouse servers
The address corresponding to the clickhouse server
The username corresponding to the clickhouse server, default root user.
The password corresponding to the clickhouse server.
In the lower version of Clickhouse, the ClickhouseLocal program does not support the --path parameter, you need to use this mode to take other ways to realize the --path parameter function
ClickhouseFile uses csv format to temporarily save data. If the data in the row contains the delimiter value of csv, it may cause program exceptions. Avoid this with this configuration. Value string has to be an exactly one character long
The directory where ClickhouseFile stores temporary files locally.
Sink plugin common parameters, please refer to Sink Common Options for details