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和端口號,問題解決