1
0
Fork 0

Adding upstream version 1.34.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:26:29 +02:00
parent e393c3af3f
commit 4978089aab
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4963 changed files with 677545 additions and 0 deletions

View file

@ -0,0 +1,13 @@
-----BEGIN DH PARAMETERS-----
MIICCAKCAgEAoo1x7wI5K57P1/AkHUmVWzKNfy46b/ni/QtClomTB78Ks1FP8dzs
CQBW/pfL8yidxTialNhMRCZO1J+uPjTvd8dG8SFZzVylkF41LBNrUD+MLyh/b6Nr
8uWf3tqYCtsiqsQsnq/oU7C29wn6UjhPPVbRRDPGyJUFOgp0ebPR0L2gOc5HhXSF
Tt0fuWnvgZJBKGvyodby3p2CSheu8K6ZteVc8ZgHuanhCQA30nVN+yNQzyozlB2H
B9jxTDPJy8+/4Mui3iiNyXg6FaiI9lWdH7xgKoZlHi8BWlLz5Se9JVNYg0dPrMTz
K0itQyyTKUlK73x+1uPm6q1AJwz08EZiCXNbk58/Sf+pdwDmAO2QSRrERC73vnvc
B1+4+Kf7RS7oYpAHknKm/MFnkCJLVIq1b6kikYcIgVCYe+Z1UytSmG1QfwdgL8QQ
TVYVHBg4w07+s3/IJ1ekvNhdxpkmmevYt7GjohWu8vKkip4se+reNdo+sqLsgFKf
1IuDMD36zn9FVukvs7e3BwZCTkdosGHvHGjA7zm2DwPPO16hCvJ4mE6ULLpp2NEw
EBYWm3Tv6M/xtrF5Afyh0gAh7eL767/qsarbx6jlqs+dnh3LptqsE3WerWK54+0B
3Hr5CVfgYbeXuW2HeFb+fS6CNUWmiAsq1XRiz5p16hpeMGYN/qyF1IsCAQI=
-----END DH PARAMETERS-----

View file

@ -0,0 +1,30 @@
version: '3'
services:
clickhouse:
# choose `:latest` after resolve https://github.com/ClickHouse/ClickHouse/issues/13057
image: docker.io/yandex/clickhouse-server:${CLICKHOUSE_VERSION:-latest}
volumes:
- ./init_schema.sql:/docker-entrypoint-initdb.d/init_schema.sql
- ./test_dictionary.xml:/etc/clickhouse-server/01-test_dictionary.xml
- ./zookeeper.xml:/etc/clickhouse-server/config.d/00-zookeeper.xml
- ./tls_settings.xml:/etc/clickhouse-server/config.d/01-tls_settings.xml
# please comment text_log.xml when CLICKHOUSE_VERSION = 19.16
- ./text_log.xml:/etc/clickhouse-server/config.d/02-text_log.xml
- ./part_log.xml:/etc/clickhouse-server/config.d/03-part_log.xml
- ./mysql_port.xml:/etc/clickhouse-server/config.d/04-mysql_port.xml
- ./dhparam.pem:/etc/clickhouse-server/dhparam.pem
- ../../../../testutil/pki/serverkey.pem:/etc/clickhouse-server/server.key
- ../../../../testutil/pki/servercert.pem:/etc/clickhouse-server/server.crt
ports:
- 3306:3306
- 8123:8123
- 8443:8443
- 9000:9000
- 9009:9009
zookeeper:
image: docker.io/zookeeper:3.5.6
volumes:
- /var/lib/zookeeper
ports:
- 2181:2181

View file

@ -0,0 +1,6 @@
DROP TABLE IF EXISTS default.test;
CREATE TABLE default.test(
Nom String,
Code Nullable(String) DEFAULT Null,
Cur Nullable(String) DEFAULT Null
) ENGINE=MergeTree() ORDER BY tuple();

View file

@ -0,0 +1,3 @@
<yandex>
<mysql_port>3306</mysql_port>
</yandex>

View file

@ -0,0 +1,12 @@
<yandex>
<part_log>
<database>system</database>
<table>part_log</table>
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
<!-- 19.16 -->
<partition_by>event_date</partition_by>
<!-- 20.5 -->
<!-- <engine>Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + INTERVAL 30 day</engine> -->
</part_log>
</yandex>

View file

@ -0,0 +1,12 @@
### ClickHouse input plugin
[[inputs.clickhouse]]
timeout = 2
username = "default"
servers = ["http://127.0.0.1:8123"]
auto_discovery = true
cluster_include = []
cluster_exclude = ["test_shard_localhost"]
[[outputs.file]]
files = ["stdout"]

View file

@ -0,0 +1,16 @@
### ClickHouse input plugin
[[inputs.clickhouse]]
timeout = 2
username = "default"
servers = ["https://127.0.0.1:8443"]
auto_discovery = true
cluster_include = []
cluster_exclude = ["test_shard_localhost"]
insecure_skip_verify = false
tls_cert = "./testutil/pki/clientcert.pem"
tls_key = "./testutil/pki/clientkey.pem"
tls_ca = "./testutil/pki/cacert.pem"
[[outputs.file]]
files = ["stdout"]

View file

@ -0,0 +1,62 @@
<!--
CREATE DICTIONARY IF NOT EXISTS default.test_dict1(
Nom String,
Code Nullable(String) DEFAULT Null,
Cur Nullable(String) DEFAULT Null
) PRIMARY KEY nom
SOURCE(
MYSQL(port 3306 host '127.0.0.1' user 'default' password '' db 'default' table 'test')
)
LAYOUT(COMPLEX_KEY_HASHED())
LIFETIME(MIN 300 MAX 600);
-->
<yandex>
<dictionary>
<name>default.test_dict</name>
<structure>
<!-- Complex key configuration -->
<key>
<attribute>
<name>Nom</name>
<type>String</type>
<null_value></null_value>
</attribute>
</key>
<!-- Attribute parameters -->
<attribute>
<name>Code</name>
<type>String</type>
<null_value></null_value>
</attribute>
<attribute>
<name>Cur</name>
<type>String</type>
<null_value></null_value>
</attribute>
</structure>
<source>
<!-- Source configuration -->
<mysql>
<port>3306</port>
<user>default</user>
<password/>
<replica>
<host>127.0.0.1</host>
<priority>1</priority>
</replica>
<db>default</db>
<table>test</table>
</mysql>
</source>
<layout>
<!-- Memory layout configuration -->
<complex_key_hashed />
</layout>
<!-- Lifetime of dictionary in memory -->
<lifetime>300</lifetime>
</dictionary>
</yandex>

View file

@ -0,0 +1,12 @@
<yandex>
<text_log>
<level>notice</level>
<database>system</database>
<table>text_log</table>
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
<!-- 19.17 -->
<partition_by>event_date</partition_by>
<!-- 20.5 -->
<!-- <engine>Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + INTERVAL 30 day</engine> -->
</text_log>
</yandex>

View file

@ -0,0 +1,4 @@
<yandex>
<https_port>8443</https_port>
<tcp_port_secure>9440</tcp_port_secure>
</yandex>

View file

@ -0,0 +1,19 @@
<yandex>
<zookeeper>
<node>
<host>zookeeper</host>
<port>2181</port>
</node>
</zookeeper>
<remote_servers replace="1">
<test>
<shard>
<internal_replication>1</internal_replication>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</test>
</remote_servers>
</yandex>