Microsoft JDBC Driver 7.4 for SQL Server
downloaded
make sure java is 12
#> java -version
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)
but it fails saying
Error: com.mysql.jdbc.Driver not loaded. :jdbc_driver_library is not set, are you sure you included
the proper driver client libraries in your classpath?
if I use
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
it still says
Error: com.microsoft.sqlserver.jdbc.SQLServerDriver not loaded. :jdbc_driver_library is not set, are you sure you included
the proper driver client libraries in your classpath?
oh well fixed it. Looks like I have to use mysql-jdbc-7.4.1.jre8.jar with openjdk12 and it works.
it does not work if I use mysql-jdbc-7.4.1.jre12.jar
basically I had two copy in
/usr/share/logstash/logstash-core/lib/jars/sqljdbc42.jar
/usr/share/logstash/logstash-core/lib/jars/mssql-jdbc-7.4.1.jre8.jar
remove old one
now I have following. if anyone has such problem they can check.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.