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