因此,我正在使用amazon aws RDS(mysql工作台)并将其迁移到aws elasticsearch。我已阅读有关此问题的答案,可以将其与尝试将本地mysql迁移到AWS elasticsearch时创建的jdbc配置文件进行迁移。
我遇到这些错误。
`错误:Java :: JavaSql :: SQLException:找不到适用于jdbc的驱动程序: 异常:Sequel :: DatabaseConnectionError 堆栈:java.sql.DriverManager.getConnection(java / sql / DriverManager.java:689)
无法连接到数据库。尝试了1次{:error_message =>“ Java :: JavaSql :: SQLException:找不到适用于jdbc的驱动程序:” my-es-host
`
jdbc {
jdbc_connection_string => "*my-aws-rds-host*"
jdbc_user => "*my_default_user*"
jdbc_password => "my_default_password"
jdbc_driver_library => "/Users/Desktop/ELKv7/logstash-7.0.0/mysql-connector-java-8.0.15.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
statement => "select dttm from "tablename" WHERE dttm BETWEEN '2017-04-20 00:00:00' AND '2017-04-20 11:59:59'"
}
}
output {
#stdout { codec => rubydebug }
elasticsearch {
hosts => "*my elastic host"
index => "samp"
document_type => "doc"
document_id => "%{PRIMARY_KEY}"
}
}```