Skip to content

Commit 63407dc

Browse files
sixPulseExcaliburlihuav2017
andauthored
canal adapter phoenix (#3290)
* canal adapter phoenix * canal adapter phoenix * canal adapter phoenix * canal adapter phoenix * canal adapter phoenix * canal adapter phoenix * canal adapter phoenix Co-authored-by: lihuav2017 <lihua@able-elec.com>
1 parent 3c20fd0 commit 63407dc

File tree

25 files changed

+3132
-2
lines changed

25 files changed

+3132
-2
lines changed

client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/CanalAdapterApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313
@SpringBootApplication
1414
public class CanalAdapterApplication {
15-
1615
public static void main(String[] args) {
16+
1717
SpringApplication application = new SpringApplication(CanalAdapterApplication.class);
1818
application.setBannerMode(Banner.Mode.OFF);
1919
application.run(args);

client-adapter/launcher/src/main/resources/application.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,11 @@ canal.conf:
9494
# - name: kudu
9595
# key: kudu
9696
# properties:
97-
# kudu.master.address: 127.0.0.1 # ',' split multi address
97+
# kudu.master.address: 127.0.0.1 # ',' split multi address
98+
# - name: phoenix
99+
# key: phoenix
100+
# properties:
101+
# jdbc.driverClassName: org.apache.phoenix.jdbc.PhoenixDriver
102+
# jdbc.url: jdbc:phoenix:127.0.0.1:2181:/hbase/db
103+
# jdbc.username:
104+
# jdbc.password:

client-adapter/phoenix/pom.xml

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
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>canal.client-adapter</artifactId>
7+
<groupId>com.alibaba.otter</groupId>
8+
<version>1.1.5-SNAPSHOT</version>
9+
<relativePath>../pom.xml</relativePath>
10+
</parent>
11+
<modelVersion>4.0.0</modelVersion>
12+
<groupId>com.alibaba.otter</groupId>
13+
<artifactId>client-adapter.phoenix</artifactId>
14+
<packaging>jar</packaging>
15+
<name>canal client adapter phoenix module for otter ${project.version}</name>
16+
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>org.apache.phoenix</groupId>
21+
<artifactId>phoenix-core</artifactId>
22+
<version>4.14.1-HBase-1.4</version>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.apache.hbase</groupId>
26+
<artifactId>hbase-client</artifactId>
27+
<version>1.4.8</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>com.google.protobuf</groupId>
31+
<artifactId>protobuf-java</artifactId>
32+
<version>2.5.0</version>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>com.alibaba.otter</groupId>
37+
<artifactId>client-adapter.common</artifactId>
38+
<version>${project.version}</version>
39+
<scope>provided</scope>
40+
</dependency>
41+
<dependency>
42+
<groupId>org.slf4j</groupId>
43+
<artifactId>slf4j-api</artifactId>
44+
<version>1.7.12</version>
45+
<scope>provided</scope>
46+
</dependency>
47+
<dependency>
48+
<groupId>commons-lang</groupId>
49+
<artifactId>commons-lang</artifactId>
50+
<version>2.6</version>
51+
<scope>provided</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>commons-io</groupId>
55+
<artifactId>commons-io</artifactId>
56+
<version>2.4</version>
57+
<scope>provided</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.google.guava</groupId>
61+
<artifactId>guava</artifactId>
62+
<version>18.0</version>
63+
<scope>provided</scope>
64+
</dependency>
65+
<dependency>
66+
<groupId>com.alibaba</groupId>
67+
<artifactId>druid</artifactId>
68+
<version>1.1.9</version>
69+
<scope>provided</scope>
70+
</dependency>
71+
<dependency>
72+
<groupId>junit</groupId>
73+
<artifactId>junit</artifactId>
74+
<version>4.12</version>
75+
<scope>test</scope>
76+
</dependency>
77+
<dependency>
78+
<groupId>com.alibaba</groupId>
79+
<artifactId>fastjson</artifactId>
80+
<version>1.2.58</version>
81+
<scope>provided</scope>
82+
</dependency>
83+
84+
<dependency>
85+
<groupId>mysql</groupId>
86+
<artifactId>mysql-connector-java</artifactId>
87+
<version>5.1.48</version>
88+
<scope>provided</scope>
89+
</dependency>
90+
</dependencies>
91+
92+
93+
<build>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-assembly-plugin</artifactId>
98+
<version>2.4</version>
99+
<configuration>
100+
<descriptorRefs>
101+
<descriptorRef>jar-with-dependencies</descriptorRef>
102+
</descriptorRefs>
103+
</configuration>
104+
<executions>
105+
<execution>
106+
<id>make-assembly</id>
107+
<phase>package</phase>
108+
<goals>
109+
<goal>single</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
114+
<plugin>
115+
<artifactId>maven-antrun-plugin</artifactId>
116+
<executions>
117+
<execution>
118+
<phase>package</phase>
119+
<goals>
120+
<goal>run</goal>
121+
</goals>
122+
<configuration>
123+
<!-- <tasks>-->
124+
<!-- <copy todir="${project.basedir}/../launcher/target/classes/phoenix" overwrite="true">-->
125+
<!-- <fileset dir="${project.basedir}/target/classes/phoenix" erroronmissingdir="true">-->
126+
<!-- <include name="*.yml"/>-->
127+
<!-- </fileset>-->
128+
<!-- </copy>-->
129+
<!-- </tasks>-->
130+
<tasks>
131+
<copy todir="${project.basedir}/../launcher/target/canal-adapter/conf/phoenix" overwrite="true">
132+
<fileset dir="${project.basedir}/target/classes/phoenix" erroronmissingdir="true">
133+
<include name="*.yml"/>
134+
</fileset>
135+
</copy>
136+
<copy todir="${project.basedir}/../launcher/target/canal-adapter/plugin" overwrite="true">
137+
<fileset dir="${project.basedir}/target/" erroronmissingdir="true">
138+
<include name="*with-dependencies.jar"/>
139+
</fileset>
140+
</copy>
141+
<copy todir="${project.basedir}/../launcher/target/classes/phoenix" overwrite="true">
142+
<fileset dir="${project.basedir}/target/classes/phoenix" erroronmissingdir="true">
143+
<include name="*.yml" />
144+
</fileset>
145+
</copy>
146+
</tasks>
147+
</configuration>
148+
</execution>
149+
</executions>
150+
</plugin>
151+
</plugins>
152+
</build>
153+
154+
</project>

0 commit comments

Comments
 (0)