Skip to content

Commit d9f2f4a

Browse files
committed
Add Clickhouse Writer
1 parent 643b6e9 commit d9f2f4a

File tree

9 files changed

+531
-1
lines changed

9 files changed

+531
-1
lines changed

Diff for: clickhousewriter/pom.xml

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>datax-all</artifactId>
7+
<groupId>com.alibaba.datax</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
11+
<modelVersion>4.0.0</modelVersion>
12+
<artifactId>clickhousewriter</artifactId>
13+
<name>clickhousewriter</name>
14+
<packaging>jar</packaging>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>ru.yandex.clickhouse</groupId>
19+
<artifactId>clickhouse-jdbc</artifactId>
20+
<version>0.2.4</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>com.alibaba.datax</groupId>
24+
<artifactId>datax-core</artifactId>
25+
<version>${datax-project-version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>com.alibaba.datax</groupId>
29+
<artifactId>datax-common</artifactId>
30+
<version>${datax-project-version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>com.alibaba.datax</groupId>
34+
<artifactId>simulator</artifactId>
35+
<version>${datax-project-version}</version>
36+
<scope>test</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.slf4j</groupId>
40+
<artifactId>slf4j-api</artifactId>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>ch.qos.logback</groupId>
45+
<artifactId>logback-classic</artifactId>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>com.alibaba.datax</groupId>
50+
<artifactId>plugin-rdbms-util</artifactId>
51+
<version>${datax-project-version}</version>
52+
</dependency>
53+
</dependencies>
54+
<build>
55+
<resources>
56+
<resource>
57+
<directory>src/main/java</directory>
58+
<includes>
59+
<include>**/*.properties</include>
60+
</includes>
61+
</resource>
62+
</resources>
63+
<plugins>
64+
<!-- compiler plugin -->
65+
<plugin>
66+
<artifactId>maven-compiler-plugin</artifactId>
67+
<configuration>
68+
<source>${jdk-version}</source>
69+
<target>${jdk-version}</target>
70+
<encoding>${project-sourceEncoding}</encoding>
71+
</configuration>
72+
</plugin>
73+
<!-- assembly plugin -->
74+
<plugin>
75+
<artifactId>maven-assembly-plugin</artifactId>
76+
<configuration>
77+
<descriptors>
78+
<descriptor>src/main/assembly/package.xml</descriptor>
79+
</descriptors>
80+
<finalName>datax</finalName>
81+
</configuration>
82+
<executions>
83+
<execution>
84+
<id>dwzip</id>
85+
<phase>package</phase>
86+
<goals>
87+
<goal>single</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
</plugins>
93+
</build>
94+
</project>

Diff for: clickhousewriter/src/main/assembly/package.xml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<assembly
2+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
5+
<id></id>
6+
<formats>
7+
<format>dir</format>
8+
</formats>
9+
<includeBaseDirectory>false</includeBaseDirectory>
10+
<fileSets>
11+
<fileSet>
12+
<directory>src/main/resources</directory>
13+
<includes>
14+
<include>plugin.json</include>
15+
<include>plugin_job_template.json</include>
16+
</includes>
17+
<outputDirectory>plugin/writer/clickhousewriter</outputDirectory>
18+
</fileSet>
19+
<fileSet>
20+
<directory>target/</directory>
21+
<includes>
22+
<include>clickhousewriter-0.0.1-SNAPSHOT.jar</include>
23+
</includes>
24+
<outputDirectory>plugin/writer/clickhousewriter</outputDirectory>
25+
</fileSet>
26+
</fileSets>
27+
28+
<dependencySets>
29+
<dependencySet>
30+
<useProjectArtifact>false</useProjectArtifact>
31+
<outputDirectory>plugin/writer/clickhousewriter/libs</outputDirectory>
32+
<scope>runtime</scope>
33+
</dependencySet>
34+
</dependencySets>
35+
</assembly>

0 commit comments

Comments
 (0)