mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
去掉client-launcher, 移入client-adapter中重命名为example, 调整其他相关模块结构
This commit is contained in:
@@ -3,15 +3,16 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>canal</artifactId>
|
<artifactId>canal.client-adapter</artifactId>
|
||||||
<groupId>com.alibaba.otter</groupId>
|
<groupId>com.alibaba.otter</groupId>
|
||||||
<version>1.1.1-SNAPSHOT</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.alibaba.otter</groupId>
|
<groupId>com.alibaba.otter</groupId>
|
||||||
<artifactId>canal.client-launcher</artifactId>
|
<artifactId>example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>canal client launcher module for otter ${project.version}</name>
|
<name>canal client adapter example module for otter ${project.version}</name>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.otter</groupId>
|
<groupId>com.alibaba.otter</groupId>
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.otter</groupId>
|
<groupId>com.alibaba.otter</groupId>
|
||||||
<artifactId>canal.client</artifactId>
|
<artifactId>canal.client</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${canal_version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- 单独引入rocketmq依赖 -->
|
<!-- 单独引入rocketmq依赖 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -144,5 +145,4 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
</project>
|
||||||
</project>
|
|
||||||
18
client-adapter/example/src/main/resources/canal-client.yml
Normal file
18
client-adapter/example/src/main/resources/canal-client.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
canalServerHost: 127.0.0.1:11111
|
||||||
|
#zookeeperHosts: slave1:2181
|
||||||
|
#bootstrapServers: slave1:6667,slave2:6667 #or rocketmq nameservers:host1:9876;host2:9876
|
||||||
|
flatMessage: false
|
||||||
|
|
||||||
|
canalInstances:
|
||||||
|
- instance: example
|
||||||
|
adapterGroups:
|
||||||
|
- outAdapters:
|
||||||
|
- name: logger
|
||||||
|
|
||||||
|
#mqTopics:
|
||||||
|
#- mqMode: rocketmq
|
||||||
|
# topic: example
|
||||||
|
# groups:
|
||||||
|
# - groupId: example
|
||||||
|
# outAdapters:
|
||||||
|
# - name: logger
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<logger name="com.alibaba.otter.canal.client" additivity="false">
|
<logger name="com.alibaba.otter.canal.client" additivity="false">
|
||||||
<level value="INFO" />
|
<level value="INFO" />
|
||||||
<!--<appender-ref ref="STDOUT"/>-->
|
<appender-ref ref="STDOUT"/>
|
||||||
<appender-ref ref="CANAL-ROOT" />
|
<appender-ref ref="CANAL-ROOT" />
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
<module>logger</module>
|
<module>logger</module>
|
||||||
<module>hbase</module>
|
<module>hbase</module>
|
||||||
<module>launcher</module>
|
<module>launcher</module>
|
||||||
|
<module>example</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
#canalServerHost: 127.0.0.1:11111
|
|
||||||
#zookeeperHosts: slave1:2181
|
|
||||||
bootstrapServers: slave1:6667,slave2:6667 #or rocketmq nameservers:host1:9876;host2:9876
|
|
||||||
flatMessage: true
|
|
||||||
|
|
||||||
#canalInstances:
|
|
||||||
#- instance: example
|
|
||||||
# adapterGroups:
|
|
||||||
# - outAdapters:
|
|
||||||
# - name: logger
|
|
||||||
# - name: hbase
|
|
||||||
# hosts: slave1:2181
|
|
||||||
# properties: {znodeParent: "/hbase-unsecure"}
|
|
||||||
|
|
||||||
mqTopics:
|
|
||||||
- mqMode: rocketmq
|
|
||||||
topic: example
|
|
||||||
groups:
|
|
||||||
- groupId: example
|
|
||||||
outAdapters:
|
|
||||||
- name: logger
|
|
||||||
# - name: hbase
|
|
||||||
# hosts: slave1:2181
|
|
||||||
# properties: {znodeParent: "/hbase-unsecure"}
|
|
||||||
1
pom.xml
1
pom.xml
@@ -119,7 +119,6 @@
|
|||||||
<module>example</module>
|
<module>example</module>
|
||||||
<module>prometheus</module>
|
<module>prometheus</module>
|
||||||
<module>client-adapter</module>
|
<module>client-adapter</module>
|
||||||
<module>client-launcher</module>
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
|||||||
Reference in New Issue
Block a user