Hi All,
I am planning to load data from SQL Server database to Elastic. While trying to load this data using Logstash JDBC plugin, I am facing issue. I am pasting details as below, please suggest what is missing here.
(Please note that driver files have 777 privilege and Elastic has access to the same. We are able to load data from Oracle JDBC, but facing issue while loading from SQLServer)
Try1: When I give absolute path of JDBC driver (sqljdbc4-2.0.jar), I am getting:
Error: com.microsoft.sqlserver.jdbc.SQLServerDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library?
Try2: Copy the driver to path /logstash/product/logstash-7.10.2/logstash-core/lib/jars and assign jdbc_driver_library => "sqljdbc4-2.0.jar":
Error: unable to load sqljdbc4-2.0.jar from :jdbc_driver_library, file not readable (please check user and group permissions for the path) <
Try3: Give absolute path of installation jar folder to jdbc_driver_library (/logstash/product/logstash-7.10.2/logstash-core/lib/jars/sqljdbc4-2.0.jar):
Error: com.microsoft.sqlserver.jdbc.SQLServerDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library? />
Try4: Remove the line jdbc_driver_library => "sqljdbc4-2.0.jar" from config file:
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? />
Try5: Change the JDBC driver from sqljdbc4-2.0.jar to mssql-jdbc-9.4.0.jre16.jar
Error: unable to load mssql-jdbc-9.4.0.jre16.jar from :jdbc_driver_library, file not readable (please check user and group permissions for the path) />
Thanks in advance!