CanalClientException: 微服务连接不上windows上的canal

CanalClientException: java.io.IOException: end of stream when reading header

defined in com.xpand.starter.canal.config.CanalClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.xpand.starter.canal.client.CanalClient]: Factory method 'canalClient' threw exception; nested exception is com.alibaba.otter.canal.protocol.exception.CanalClientException: java.io.IOException: end of stream when reading header

经过检查是主机IP和端口错误。

解决办法:去canal的安装目录下,logs>>canal下的canal日志文件里面查找 IP和端口号

start the canal server[xx.xx.xx.xx():11111],端口号为11111

在微服务的配置文件里面用上面的IP和端口号,问题解决

你可能感兴趣的:(CanalClientException: 微服务连接不上windows上的canal)