# Logstash JDBC Plugin Cassandra, Maria Driver Not Working

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-plugin-cassandra-maria-driver-not-working/213555>\
**Category:** Logstash\
**Created:** [January 2, 2020, 10:37am UTC](https://discuss.elastic.co/t/logstash-jdbc-plugin-cassandra-maria-driver-not-working/213555 "2020-01-02T10:37:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharath\_sai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharath_sai/32/59876_2.png) [@sharath\_sai](https://discuss.elastic.co/u/sharath_sai)\
**Post date:** [January 2, 2020, 10:37am UTC](https://discuss.elastic.co/t/logstash-jdbc-plugin-cassandra-maria-driver-not-working/213555/1 "2020-01-02T10:37:54Z")

</div>

I am Working on Logstash input Jdbc with different databases, Primarily I am trying for cassandra and I am using DBSchema driver, the driver is properly working with my java jdbc code, but when coming integrate with Logstash it was failing to connect, I am trying this from many days, i did n't find any exact solution in forum, i tried all the things, but not worked, with maria db was also i tried it is also failing.

Here I am providing Logs while starting Logstash  
Error: com.dbschema.CassandraJdbcDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc\_driver\_library?  
Exception: LogStash::ConfigurationError  
Stack: /opt/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/plugin\_mixins/jdbc/jdbc.rb:163:in `open\_jdbc\_connection'

Logstash conf file: (Cassandra)  
#Sample Logstash configuration for creating a simple  
# Beats -\> Logstash -\> Elasticsearch pipeline.

```
input {
jdbc {
clean_run => true
jdbc_connection_string => "jdbc:cassandra://localhost:9042/cloud"
jdbc_user => "cassandra"
jdbc_password => "cassandra"
jdbc_driver_library => "/usr/share/logstash/logstash-core/lib/jars/cassandrajdbc1.2.jar"
jdbc_validate_connection => true
jdbc_driver_class => "com.dbschema.CassandraJdbcDriver"
statement => "SELECT * FROM cloud.event_history_all"
}
}

output {
elasticsearch { hosts => ["localhost:9200"]
index => "log_cassandra" }
stdout { codec => rubydebug }
}

```

Cassandra version -3.11.5  
elk versions - 7.4.2  
java version - 11.0.5

Thanks in advance

---

<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:** [January 30, 2020, 10:37am UTC](https://discuss.elastic.co/t/logstash-jdbc-plugin-cassandra-maria-driver-not-working/213555/2 "2020-01-30T10:37:56Z")

</div>

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