From 865ba94605ccd029f6c81d2990808ec907172e3e Mon Sep 17 00:00:00 2001 From: mcy Date: Thu, 1 Nov 2018 15:22:14 +0800 Subject: [PATCH] =?UTF-8?q?application.yml=E9=85=8D=E7=BD=AE=E6=89=93?= =?UTF-8?q?=E5=8C=85=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-adapter/launcher/pom.xml | 8 --- .../src/main/resources/application-sample.yml | 49 +++++++++++++++++++ .../src/main/resources/application.yml | 46 +---------------- 3 files changed, 50 insertions(+), 53 deletions(-) create mode 100644 client-adapter/launcher/src/main/resources/application-sample.yml diff --git a/client-adapter/launcher/pom.xml b/client-adapter/launcher/pom.xml index 708e1471..1a79ed21 100644 --- a/client-adapter/launcher/pom.xml +++ b/client-adapter/launcher/pom.xml @@ -166,14 +166,6 @@ - - - src/main/resources - - application.yml - - - diff --git a/client-adapter/launcher/src/main/resources/application-sample.yml b/client-adapter/launcher/src/main/resources/application-sample.yml new file mode 100644 index 00000000..706e4088 --- /dev/null +++ b/client-adapter/launcher/src/main/resources/application-sample.yml @@ -0,0 +1,49 @@ +server: + port: 8081 +logging: + level: + com.alibaba.otter.canal.client.adapter.hbase: DEBUG +spring: + jackson: + date-format: yyyy-MM-dd HH:mm:ss + time-zone: GMT+8 + default-property-inclusion: non_null + +canal.conf: + canalServerHost: 127.0.0.1:11111 +# zookeeperHosts: slave1:2181 +# bootstrapServers: slave1:6667 #or rocketmq +# flatMessage: true + canalInstances: + - instance: example + groups: + - outAdapters: + - name: logger +# - name: hbase +# properties: +# hbase.zookeeper.quorum: 127.0.0.1 +# hbase.zookeeper.property.clientPort: 2181 +# zookeeper.znode.parent: /hbase +# mqTopics: +# - mqMode: kafka +# topic: example +# groups: +# - groupId: g2 +# outAdapters: +# - name: logger +# mqTopics: +# - mqMode: rocketmq +# topic: example +# groups: +# - groupId: g2 +# outAdapters: +# - name: logger +# +#adapter.conf: +# datasourceConfigs: +# defaultDS: +# url: jdbc:mysql://127.0.0.1:3306/mytest?useUnicode=true +# username: root +# password: 121212 +# adapterConfigs: +# - hbase/mytest_person2.yml diff --git a/client-adapter/launcher/src/main/resources/application.yml b/client-adapter/launcher/src/main/resources/application.yml index 250d6a60..7fe7b191 100644 --- a/client-adapter/launcher/src/main/resources/application.yml +++ b/client-adapter/launcher/src/main/resources/application.yml @@ -7,48 +7,4 @@ spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 - default-property-inclusion: non_null - - -hbasezookeeper.quorum: 127.0.0.1 -hbase.zookeeper.property.clientPort: 2181 -hbase.zookeeper.znode.parent: /hbase - -canal.conf: - canalServerHost: 127.0.0.1:11111 -# zookeeperHosts: slave1:2181 -# bootstrapServers: slave1:6667 #or rocketmq nameservers:host1:9876;host2:9876 - flatMessage: true - canalInstances: - - instance: example - groups: - - outAdapters: - - name: logger -# - name: hbase -# properties: -# hbase.zookeeper.quorum: ${hbase.zookeeper.quorum} -# hbase.zookeeper.property.clientPort: ${hbase.zookeeper.property.clientPort} -# zookeeper.znode.parent: ${hbase.zookeeper.znode.parent} -# mqTopics: -# - mqMode: kafka -# topic: example -# groups: -# - groupId: g2 -# outAdapters: -# - name: logger -# mqTopics: -# - mqMode: rocketmq -# topic: example -# groups: -# - groupId: g2 -# outAdapters: -# - name: logger - -#adapter.conf: -# datasourceConfigs: -# defaultDS: -# url: jdbc:mysql://127.0.0.1:3306/mytest?useUnicode=true -# username: root -# password: 121212 -# adapterConfigs: -# - hbase/mytest_person2.yml + default-property-inclusion: non_null \ No newline at end of file