环境信息
canal version 1.1.4 mysql version 5.6 windows 10
问题描述
关于canaladapter客户端启动一种报错的问题,为什么还没修复:
Connected to the target VM, address: '127.0.0.1:52171', transport: 'socket' process error!com.alibaba.otter.canal.protocol.exception.CanalClientException: something goes wrong when doing authentication: auth failed for user:canal at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.doConnect(SimpleCanalConnector.java:191) ~[classes/:na] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.connect(SimpleCanalConnector.java:115) ~[classes/:na] at com.alibaba.otter.canal.example.AbstractCanalClientTest.process(AbstractCanalClientTest.java:56) ~[classes/:na] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_202] process error!com.alibaba.otter.canal.protocol.exception.CanalClientException: something goes wrong when doing authentication: auth failed for user:canal at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.doConnect(SimpleCanalConnector.java:191) ~[classes/:na] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.connect(SimpleCanalConnector.java:115) ~[classes/:na] at com.alibaba.otter.canal.example.AbstractCanalClientTest.process(AbstractCanalClientTest.java:56) ~[classes/:na] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_202]
步骤重现
1、直接执行canal.adapter-1.1.4.bat 报错
2、执行客户端类: SimpleCanalClientTest 报错
都是授权失败,就一个测试demo你授权什么?
实际执行情况
Ack ackBody = Ack.parseFrom(ack.getBody()); if (ackBody.getErrorCode() > 0) { throw new CanalClientException("something goes wrong when doing authentication: " + ackBody.getErrorMessage()); }
原提问者GitHub用户yangzhiwen911
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。