使用logstash出现报错com.mysql.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library

时间:2021-08-24 17:04:32   收藏:0   阅读:24

是因为需要使用到插件logstash-input-jdbc,

因该插件是ruby开发的,需要先在电脑中安装ruby环境,然后安装RubyGems插件

进入logstash-input-jdbc目录下,命令行执行gem build logstash-input-jdbc.gemspec,

命令执行完后会生成一个logstash-input-jdbc-xxx.gem文件,

把这个文件复制到logstash的bin目录下,命令行执行./logstash-plugin install logstash-input-jdbc-xxx.gem,安装完成后。

logstash就可以正常启动了

原文:https://www.cnblogs.com/xiaochongzi/p/15180048.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!