forked from Altinity/clickhouse-sink-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Altinity/develop
Merge from source
- Loading branch information
Showing
59 changed files
with
1,948 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
sink-connector-lightweight/tests/integration/configs/clickhouse/common.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<clickhouse> | ||
<timezone>Europe/Moscow</timezone> | ||
<listen_host replace="replace">::</listen_host> | ||
<path>/var/lib/clickhouse/</path> | ||
<tmp_path>/var/lib/clickhouse/tmp/</tmp_path> | ||
</clickhouse> |
7 changes: 7 additions & 0 deletions
7
sink-connector-lightweight/tests/integration/configs/clickhouse/config.d/ports.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<clickhouse> | ||
<https_port>8443</https_port> | ||
<tcp_port_secure>9440</tcp_port_secure> | ||
<postgresql_port>9005</postgresql_port> | ||
<mysql_port>9004</mysql_port> | ||
</clickhouse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sink-connector-lightweight/tests/integration/configs/clickhouse/config.d/ssl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<clickhouse> | ||
<openSSL> | ||
<server> | ||
<certificateFile>/etc/clickhouse-server/ssl/server.crt</certificateFile> | ||
<privateKeyFile>/etc/clickhouse-server/ssl/server.key</privateKeyFile> | ||
<dhParamsFile>/etc/clickhouse-server/ssl/dhparam.pem</dhParamsFile> | ||
<verificationMode>none</verificationMode> | ||
<cacheSessions>true</cacheSessions> | ||
</server> | ||
<client> | ||
<cacheSessions>true</cacheSessions> | ||
<verificationMode>none</verificationMode> | ||
<invalidCertificateHandler> | ||
<name>AcceptCertificateHandler</name> | ||
</invalidCertificateHandler> | ||
</client> | ||
</openSSL> | ||
</clickhouse> |
99 changes: 99 additions & 0 deletions
99
sink-connector-lightweight/tests/integration/configs/clickhouse/config.d/storage.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<clickhouse> | ||
|
||
<storage_configuration> | ||
<disks> | ||
<s3_disk> | ||
<type>s3</type> | ||
<endpoint>http://minio:9001/root/data/</endpoint> | ||
<access_key_id>minio</access_key_id> | ||
<secret_access_key>minio123</secret_access_key> | ||
</s3_disk> | ||
<default> | ||
<keep_free_space_bytes>1024</keep_free_space_bytes> | ||
</default> | ||
<new_disk> | ||
<path>/mnt/new_disk/</path> | ||
<keep_free_space_bytes>10485760</keep_free_space_bytes> | ||
</new_disk> | ||
<disk1> | ||
<path>/var/lib/clickhouse/disk1/</path> | ||
</disk1> | ||
<disk2> | ||
<path>/var/lib/clickhouse/disk2/</path> | ||
</disk2> | ||
<jbod1> | ||
<path>/jbod1/</path> | ||
</jbod1> | ||
<jbod2> | ||
<path>/jbod2/</path> | ||
<keep_free_space_bytes>10485760</keep_free_space_bytes> | ||
</jbod2> | ||
</disks> | ||
<policies> | ||
<s3_policy> | ||
<volumes> | ||
<main> | ||
<disk>s3_disk</disk> | ||
</main> | ||
</volumes> | ||
</s3_policy> | ||
<default> | ||
<volumes> | ||
<default> | ||
<disk>default</disk> | ||
</default> | ||
</volumes> | ||
</default> | ||
<my_policy> | ||
<volumes> | ||
<main> | ||
<disk>default</disk> | ||
<max_data_part_size_bytes>1073741824</max_data_part_size_bytes> | ||
</main> | ||
<external> | ||
<disk>new_disk</disk> | ||
</external> | ||
</volumes> | ||
</my_policy> | ||
<policy1> | ||
<volumes> | ||
<volume2> | ||
<disk>disk1</disk> | ||
</volume2> | ||
</volumes> | ||
</policy1> | ||
<policy2> | ||
<volumes> | ||
<volume2> | ||
<disk>disk2</disk> | ||
</volume2> | ||
</volumes> | ||
</policy2> | ||
<tiered_storage> | ||
<volumes> | ||
<hot> | ||
<disk>disk1</disk> | ||
</hot> | ||
<cold> | ||
<disk>s3_disk</disk> | ||
</cold> | ||
</volumes> | ||
<move_factor>0.2</move_factor> | ||
</tiered_storage> | ||
<fast_med_and_slow> | ||
<volumes> | ||
<fast> | ||
<disk>jbod1</disk> | ||
</fast> | ||
<medium> | ||
<disk>jbod2</disk> | ||
</medium> | ||
<slow> | ||
<disk>s3_disk</disk> | ||
</slow> | ||
</volumes> | ||
</fast_med_and_slow> | ||
</policies> | ||
</storage_configuration> | ||
|
||
</clickhouse> |
8 changes: 8 additions & 0 deletions
8
sink-connector-lightweight/tests/integration/configs/clickhouse/ssl/dhparam.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-----BEGIN DH PARAMETERS----- | ||
MIIBCAKCAQEAua92DDli13gJ+//ZXyGaggjIuidqB0crXfhUlsrBk9BV1hH3i7fR | ||
XGP9rUdk2ubnB3k2ejBStL5oBrkHm9SzUFSQHqfDjLZjKoUpOEmuDc4cHvX1XTR5 | ||
Pr1vf5cd0yEncJWG5W4zyUB8k++SUdL2qaeslSs+f491HBLDYn/h8zCgRbBvxhxb | ||
9qeho1xcbnWeqkN6Kc9bgGozA16P9NLuuLttNnOblkH+lMBf42BSne/TWt3AlGZf | ||
slKmmZcySUhF8aKfJnLKbkBCFqOtFRh8zBA9a7g+BT/lSANATCDPaAk1YVih2EKb | ||
dpc3briTDbRsiqg2JKMI7+VdULY9bh3EawIBAg== | ||
-----END DH PARAMETERS----- |
19 changes: 19 additions & 0 deletions
19
sink-connector-lightweight/tests/integration/configs/clickhouse/ssl/server.crt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIC/TCCAeWgAwIBAgIJANjx1QSR77HBMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNV | ||
BAMMCWxvY2FsaG9zdDAgFw0xODA3MzAxODE2MDhaGA8yMjkyMDUxNDE4MTYwOFow | ||
FDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB | ||
CgKCAQEAs9uSo6lJG8o8pw0fbVGVu0tPOljSWcVSXH9uiJBwlZLQnhN4SFSFohfI | ||
4K8U1tBDTnxPLUo/V1K9yzoLiRDGMkwVj6+4+hE2udS2ePTQv5oaMeJ9wrs+5c9T | ||
4pOtlq3pLAdm04ZMB1nbrEysceVudHRkQbGHzHp6VG29Fw7Ga6YpqyHQihRmEkTU | ||
7UCYNA+Vk7aDPdMS/khweyTpXYZimaK9f0ECU3/VOeG3fH6Sp2X6FN4tUj/aFXEj | ||
sRmU5G2TlYiSIUMF2JPdhSihfk1hJVALrHPTU38SOL+GyyBRWdNcrIwVwbpvsvPg | ||
pryMSNxnpr0AK0dFhjwnupIv5hJIOQIDAQABo1AwTjAdBgNVHQ4EFgQUjPLb3uYC | ||
kcamyZHK4/EV8jAP0wQwHwYDVR0jBBgwFoAUjPLb3uYCkcamyZHK4/EV8jAP0wQw | ||
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAM/ocuDvfPus/KpMVD51j | ||
4IdlU8R0vmnYLQ+ygzOAo7+hUWP5j0yvq4ILWNmQX6HNvUggCgFv9bjwDFhb/5Vr | ||
85ieWfTd9+LTjrOzTw4avdGwpX9G+6jJJSSq15tw5ElOIFb/qNA9O4dBiu8vn03C | ||
L/zRSXrARhSqTW5w/tZkUcSTT+M5h28+Lgn9ysx4Ff5vi44LJ1NnrbJbEAIYsAAD | ||
+UA+4MBFKx1r6hHINULev8+lCfkpwIaeS8RL+op4fr6kQPxnULw8wT8gkuc8I4+L | ||
P9gg/xDHB44T3ADGZ5Ib6O0DJaNiToO6rnoaaxs0KkotbvDWvRoxEytSbXKoYjYp | ||
0g== | ||
-----END CERTIFICATE----- |
28 changes: 28 additions & 0 deletions
28
sink-connector-lightweight/tests/integration/configs/clickhouse/ssl/server.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCz25KjqUkbyjyn | ||
DR9tUZW7S086WNJZxVJcf26IkHCVktCeE3hIVIWiF8jgrxTW0ENOfE8tSj9XUr3L | ||
OguJEMYyTBWPr7j6ETa51LZ49NC/mhox4n3Cuz7lz1Pik62WreksB2bThkwHWdus | ||
TK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awtau8L2K | ||
GZsHVp2//mS1Lfz7Qh8/L/NedqCQ+L4iWiPnZ3THjjwn3CoZ05ucpvrAMwKBgB54 | ||
nay039MUVq44Owub3KDg+dcIU62U+cAC/9oG7qZbxYPmKkc4oL7IJSNecGHA5SbU | ||
2268RFdl/gLz6tfRjbEOuOHzCjFPdvAdbysanpTMHLNc6FefJ+zxtgk9sJh0C4Jh | ||
vxFrw9nTKKzfEl12gQ1SOaEaUIO0fEBGbe8ZpauRAoGAMAlGV+2/K4ebvAJKOVTa | ||
dKAzQ+TD2SJmeR1HZmKDYddNqwtZlzg3v4ZhCk4eaUmGeC1Bdh8MDuB3QQvXz4Dr | ||
vOIP4UVaOr+uM+7TgAgVnP4/K6IeJGzUDhX93pmpWhODfdu/oojEKVcpCojmEmS1 | ||
KCBtmIrQLqzMpnBpLNuSY+Q= | ||
-----END PRIVATE KEY----- |
1 change: 1 addition & 0 deletions
1
sink-connector-lightweight/tests/integration/configs/clickhouse1/config.d/macros.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
sink-connector-lightweight/tests/integration/configs/clickhouse2/config.d/macros.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<clickhouse> | ||
<macros> | ||
<cluster>replicated_cluster</cluster> | ||
<replica>clickhouse2</replica> | ||
<shard>02</shard> | ||
<shard>01</shard> | ||
<!-- <shard2>02</shard2>--> | ||
</macros> | ||
</clickhouse> |
4 changes: 2 additions & 2 deletions
4
sink-connector-lightweight/tests/integration/configs/clickhouse3/config.d/macros.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0"?> | ||
<clickhouse> | ||
<macros> | ||
<cluster>replicated_cluster</cluster> | ||
<replica>clickhouse3</replica> | ||
<shard>02</shard> | ||
<!-- <shard2>03</shard2>--> | ||
<shard>01</shard> | ||
</macros> | ||
</clickhouse> |
31 changes: 31 additions & 0 deletions
31
sink-connector-lightweight/tests/integration/env/auto_replicated/clickhouse-service.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: '2.3' | ||
|
||
services: | ||
clickhouse: | ||
# image: clickhouse/clickhouse-integration-test:28741 | ||
image: altinityinfra/clickhouse-regression-multiarch:1.0 | ||
init: true | ||
expose: | ||
- "9000" | ||
- "8123" | ||
- "2181" | ||
volumes: | ||
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.d/logs.xml:/etc/clickhouse-server/config.d/logs.xml" | ||
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.d/remote.xml:/etc/clickhouse-server/config.d/remote.xml" | ||
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.d/zookeeper.xml:/etc/clickhouse-server/config.d/zookeeper.xml" | ||
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.xml:/etc/clickhouse-server/config.xml" | ||
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/users.xml:/etc/clickhouse-server/users.xml" | ||
- "${CLICKHOUSE_TESTS_SERVER_BIN_PATH:-/usr/bin/clickhouse}:/usr/bin/clickhouse" | ||
- "${CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH:-/usr/bin/clickhouse-odbc-bridge}:/usr/bin/clickhouse-odbc-bridge" | ||
entrypoint: bash -c "tail -f /dev/null" | ||
healthcheck: | ||
test: echo 1 | ||
interval: 10s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 300s | ||
cap_add: | ||
- SYS_PTRACE | ||
security_opt: | ||
- label:disable | ||
|
Oops, something went wrong.