# Elasticsearch 6.6.2 - JDBC driver java code

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-6-2-jdbc-driver-java-code/183049>\
**Category:** Elasticsearch\
**Created:** [May 28, 2019, 9:42am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-2-jdbc-driver-java-code/183049 "2019-05-28T09:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManimaranS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manimarans/32/46180_2.png) [@ManimaranS](https://discuss.elastic.co/u/ManimaranS)\
**Post date:** [May 28, 2019, 9:42am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-2-jdbc-driver-java-code/183049/1 "2019-05-28T09:42:13Z")

</div>

Hi  
I'm using ELK 6.6.2 and when i try to connect via JDBC, below is the error occured. Could you please help to resolve? Have downloaded the api from the downloads of elasticsearch.

**java.sql.SQLInvalidAuthorizationSpecException: current license is non-compliant for [jdbc]**

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 28, 2019, 10:09am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-2-jdbc-driver-java-code/183049/2 "2019-05-28T10:09:22Z")

</div>

See [Subscriptions](https://www.elastic.co/subscriptions) about the different features available.  
This one requires a commercial license.

You can activate a free trial of the commercial features via Kibana (Management -\> License) or via [the API](https://www.elastic.co/guide/en/elastic-stack-overview/6.7/license-management.html).

---

<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:** [June 25, 2019, 10:22am UTC](https://discuss.elastic.co/t/elasticsearch-6-6-2-jdbc-driver-java-code/183049/3 "2019-06-25T10:22:54Z")

</div>

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