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和端口号,问题解决


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM