我的logstash配置文件:
但启动logstash报错:
[2017-11-17T14:39:00,273][WARN ][logstash.inputs.jdbc ] Failed test_connection.
[2017-11-17T14:39:00,274][WARN ][logstash.inputs.jdbc ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseConnectionError: Java::ComMysqlJdbcExceptionsJdbc4::CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.>}
[2017-11-17T14:39:00,274][WARN ][logstash.inputs.jdbc ] Attempt reconnection.
[2017-11-17T14:39:00,287][WARN ][logstash.inputs.jdbc ] Failed test_connection
实在找不出是什么原因,请大神给指点下
但启动logstash报错:
[2017-11-17T14:39:00,273][WARN ][logstash.inputs.jdbc ] Failed test_connection.
[2017-11-17T14:39:00,274][WARN ][logstash.inputs.jdbc ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseConnectionError: Java::ComMysqlJdbcExceptionsJdbc4::CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.>}
[2017-11-17T14:39:00,274][WARN ][logstash.inputs.jdbc ] Attempt reconnection.
[2017-11-17T14:39:00,287][WARN ][logstash.inputs.jdbc ] Failed test_connection
实在找不出是什么原因,请大神给指点下
3 个回复
wyntergreg
赞同来自:
Marquezzzz
赞同来自:
NovemberRain_Jack
赞同来自:
我记得useUnicode=true 而不是useUnicode=yes