canal–基础–2.3–部署–常见错误
错误1
java.sql.SQLException: null, message from server: is blocked because of many connection errors;
unblock with 'mysqladmin flush-hosts'
同一个ip在短时间内产生太多中断的数据库连接而导致的阻塞,执行:
flush hosts;
错误2
IllegalStateException: Extension instance(name: es7, class: interface
com.alibaba.otter.canal.client.adapter.OuterAdapter) could not be instantiated: class could not be found`
adapter的配置文件错误,修改配置文件中es的配置中的name为es7即可解决
错误3
IllegalArgumentException: Illegal character in scheme name at index 0:
配置文件中使用的mode的方式为rest,要在hosts的ip前面加上http://
,即:
hosts:http://ip:9200