mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
enhance clickhouse support (#4957)
This commit is contained in:
@@ -74,6 +74,10 @@
|
||||
<artifactId>hbase-shaded-client</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.yandex.clickhouse</groupId>
|
||||
<artifactId>clickhouse-jdbc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- outer adapter jar with dependencies-->
|
||||
<dependency>
|
||||
@@ -167,6 +171,19 @@
|
||||
<classifier>jar-with-dependencies</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.otter</groupId>
|
||||
<artifactId>client-adapter.clickhouse</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>*</artifactId>
|
||||
<groupId>*</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<classifier>jar-with-dependencies</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- connector plugin -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.otter</groupId>
|
||||
|
||||
@@ -104,3 +104,13 @@ canal.conf:
|
||||
# jdbc.url: jdbc:phoenix:127.0.0.1:2181:/hbase/db
|
||||
# jdbc.username:
|
||||
# jdbc.password:
|
||||
# - name: clickhouse
|
||||
# key: clickhouse1
|
||||
# properties:
|
||||
# jdbc.driverClassName: ru.yandex.clickhouse.ClickHouseDriver
|
||||
# jdbc.url: jdbc:clickhouse://127.0.0.1:8123/default
|
||||
# jdbc.username: default
|
||||
# jdbc.password: 123456
|
||||
# batchSize: 3000
|
||||
# scheduleTime: 600 # second unit
|
||||
# threads: 3 # parallel threads
|
||||
Reference in New Issue
Block a user