2019-09-27 13:40:24.460 [main] INFO c.a.otter.canal.instance.core.AbstractCanalInstance - start successful.... 2019-09-27 13:40:24.508 [destination = example , address = /192.168.3.94:3306 , EventParser] ERROR c.a.o.c.p.inbound.mysql.rds.RdsBinlogEventParserProxy - dump address /192.168.3.94:3306 has an error, retrying. caused by com.alibaba.otter.canal.parse.exception.CanalParseException: Unknown host Caused by: java.net.UnknownHostException: serv4-app1: serv4-app1: unknown error at java.net.InetAddress.getLocalHost(InetAddress.java:1505) ~[na:1.8.0_65] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.generateUniqueServerId(MysqlEventParser.java:338) ~[canal.parse-1.1.0.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.buildMysqlConnection(MysqlEventParser.java:322) ~[canal.parse-1.1.0.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.buildErosaConnection(MysqlEventParser.java:78) ~[canal.parse-1.1.0.jar:na] at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$3.run(AbstractEventParser.java:167) ~[canal.parse-1.1.0.jar:na] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65] Caused by: java.net.UnknownHostException: serv4-app1: unknown error at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.8.0_65] at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) ~[na:1.8.0_65] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) ~[na:1.8.0_65] at java.net.InetAddress.getLocalHost(InetAddress.java:1500) ~[na:1.8.0_65] ... 5 common frames omitted 2019-09-27 13:40:24.511 [destination = example , address = /192.168.3.94:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:example[com.alibaba.otter.canal.parse.exception.CanalParseException: Unknown host Caused by: java.net.UnknownHostException: serv4-app1: serv4-app1: unknown error at java.net.InetAddress.getLocalHost(InetAddress.java:1505) at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.generateUniqueServerId(MysqlEventParser.java:338) at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.buildMysqlConnection(MysqlEventParser.java:322) at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.buildErosaConnection(MysqlEventParser.java:78) at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$3.run(AbstractEventParser.java:167) at java.lang.Thread.run(Thread.java:745) Caused by: java.net.UnknownHostException: serv4-app1: unknown error at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getLocalHost(InetAddress.java:1500) ... 5 more ] 2019-09-27 13:40:24.512 [destination = example , address = /192.168.3.94:3306 , EventParser] ERROR c.a.o.c.p.inbound.mysql.rds.RdsBinlogEventParserProxy - parse events has an error java.lang.NullPointerException: null at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.afterDump(MysqlEventParser.java:139) ~[canal.parse-1.1.0.jar:na] at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$3.run(AbstractEventParser.java:295) ~[canal.parse-1.1.0.jar:na] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65]
`################################################# ######### common argument ############# ################################################# canal.id= 104 #canal.ip= canal.port=11111 canal.metrics.pull.port=11112 canal.zkServers=192.168.3.89:2181,192.168.3.91:2181,192.168.3.92:2181,192.168.3.104:2181,192.168.3.105:2181
原提问者GitHub用户herico516
解决办法在这里:https://blog.csdn.net/lmb55/article/details/51264707
原回答者GitHub用户YuanTianyang
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。