Skip to content

Commit 24bce66

Browse files
authored
Include Kafka subsettings example in documentation
Added example of using named collections with Kafka subsettings in SQL.
1 parent a4a6446 commit 24bce66

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

content/en/altinity-kb-integrations/altinity-kb-kafka/altinity-kb-adjusting-librdkafka-settings.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,24 @@ And after that in configuration:
200200
</clickhouse>
201201

202202
```
203+
204+
We can also use named collections with SQL and include kafka subsettings like this:
205+
206+
```
207+
CREATE NAMED COLLECTION kafka_preset AS
208+
kafka_broker_list = 'xxxx',
209+
kafka_format = 'JSONEachRow',
210+
kafka_group_name = 'xxxxx',
211+
kafka_handle_error_mode = 'stream',
212+
kafka_topic_list = 'xxxxx',
213+
kafka.security_protocol = 'SASL_SSL',
214+
kafka.sasl_mechanism = 'PLAIN',
215+
kafka.sasl_username = 'xxxx',
216+
kafka.ssl_ca_location = '/path/to/cert',
217+
kafka.ssl_certificate_location = 'ssl_certificate_location'
218+
kafka.ssl_key_location = '/path-key_location'
219+
```
220+
203221

204222
The same fragment of code in newer versions:
205223
- https://github.com/ClickHouse/ClickHouse/blob/d19e24f530c30f002488bc136da78f5fb55aedab/src/Storages/Kafka/StorageKafka.cpp#L474-L496

0 commit comments

Comments
 (0)