# Java::org.mariadb.jdbc.Driver not loaded

**URL:** <https://discuss.elastic.co/t/java-org-mariadb-jdbc-driver-not-loaded/154367>\
**Category:** Logstash\
**Created:** [October 29, 2018, 3:07am UTC](https://discuss.elastic.co/t/java-org-mariadb-jdbc-driver-not-loaded/154367 "2018-10-29T03:07:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sally.c](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sally.c](https://discuss.elastic.co/u/sally.c)\
**Post date:** [October 29, 2018, 3:07am UTC](https://discuss.elastic.co/t/java-org-mariadb-jdbc-driver-not-loaded/154367/1 "2018-10-29T03:07:03Z")

</div>

Hi,

I am using Logstach to migrate data from mariadb to elasticSearch, but I always get this error, 'Error: Java::org.mariadb.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc\_driver\_library?'.

Here is my .conf file:

```auto
input{
        jdbc {
                jdbc_driver_library => "mariadb-java-client-2.3.0-sources.jar"
                jdbc_driver_class => "Java::org.mariadb.jdbc.Driver"
                jdbc_connection_string => "jdbc:mariadb://$ip:$port/db_name"
                jdbc_user => "user"
                jdbc_password => "pwd"
                statement => "SELECT * FROM db_name.tb_name"
        }
}
output {
        elasticsearch {
                hosts => "$ip:9200"
                index => "index_01"
        }
        stdout{
                codec => rubydebug
        }
}

```

I put the driver file 'mariadb-java-client-2.3.0-sources.jar' under the Logstash folder and the jar is not empty; I also tried the absolute address but I still got the same error. Could you tell me how to fix this issue.

Best Regards,  
Sally

---

<div class="post-metadata">

**Author:** ![sally.c](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sally.c](https://discuss.elastic.co/u/sally.c)\
**Post date:** [October 29, 2018, 3:39am UTC](https://discuss.elastic.co/t/java-org-mariadb-jdbc-driver-not-loaded/154367/2 "2018-10-29T03:39:54Z")

</div>

I replace the 'mariadb-java-client-2.3.0-sources.jar' with 'mariadb-java-client-2.3.0.jar' to fix this issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 26, 2018, 3:39am UTC](https://discuss.elastic.co/t/java-org-mariadb-jdbc-driver-not-loaded/154367/3 "2018-11-26T03:39:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
