开发者社区> 问答> 正文

canal正常启动,instance连不上mysql

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

展开
收起
数据大拿 2023-05-04 10:21:45 178 0
1 条回答
写回答
取消 提交回答
  • 解决办法在这里:https://blog.csdn.net/lmb55/article/details/51264707

    原回答者GitHub用户YuanTianyang

    2023-05-04 18:09:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
One Box: 解读事务与分析一体化数据库 HybridDB for MySQL 立即下载
One Box:解读事务与分析一体化数据库HybridDB for MySQL 立即下载
如何支撑HTAP场景-HybridDB for MySQL系统架构和技术演进 立即下载

相关镜像