# Received message from unsupported version: \[2.0.0\] minimal compatible version is: \[6.8.0\]

**URL:** <https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895>\
**Category:** Elasticsearch\
**Created:** [December 15, 2019, 2:56am UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895 "2019-12-15T02:56:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sg70](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sg70](https://discuss.elastic.co/u/sg70)\
**Post date:** [December 15, 2019, 2:56am UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/1 "2019-12-15T02:56:09Z")

</div>

Iam trying to integrate ElasticSearch with Microsoft SQL Server 2016 and I get this error :

```
java.lang.IllegalStateException: Received message from unsupported version: [2.0.0] minimal compatible version is: [6.8.0]
        at org.elasticsearch.transport.InboundMessage.ensureVersionCompatibility(InboundMessage.java:146) ~[elasticsearch-7.5.0.jar:7.5.0]
        at org.elasticsearch.transport.InboundMessage.access$000(InboundMessage.java:39) ~[elasticsearch-7.5.0.jar:7.5.0]
        at org.elasticsearch.transport.InboundMessage$Reader.deserialize(InboundMessage.java:76) ~[elasticsearch-7.5.0.jar:7.5.0]
        at org.elasticsearch.transport.InboundHandler.messageReceived(InboundHandler.java:113) ~[elasticsearch-7.5.0.jar:7.5.0]
        at org.elasticsearch.transport.InboundHandler.inboundMessage(InboundHandler.java:102) ~[elasticsearch-7.5.0.jar:7.5.0]
        at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:667) [elasticsearch-7.5.0.jar:7.5.0]
        at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:62) [transport-netty4-client-7.5.0.jar:7.5.0]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:326) [netty-codec-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:300) [netty-codec-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241) [netty-handler-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1422) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:931) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:700) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:600) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:554) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050) [netty-common-4.1.43.Final.jar:4.1.43.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.43.Final.jar:4.1.43.Final]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231]

```

Can someone help me get this resolved ? I realize that there are threads that deal with the exact same problem but none of them has a definitive solution.

command that I use to run:  
`"%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="%BIN%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter" "statefile.json"`

My statefile.json is:

```
{
  "type": "jdbc",
  "jdbc": {
    "url": "jdbc:sqlserver://wksp00012345;databaseName=MQ",
    "user": "sa",
    "password": "Password1234",
    "sql": "select Host, Status, AWX_JOB_ID, TS from dbo.inv_tracker_0919",
    "treat_binary_as_string": true,
    "elasticsearch": {
      "cluster": "elasticsearch",
      "host": "localhost",
      "port": 9300,
      "autodiscover": "true"
    },
    "index": "inv_tracker_0919",
    "type": "inv_tracker_0919"
  }
}

```

So far I have tried changing port to 9200, tried with the JDK version that comes with Elastic search and the Oracle JDK but I get the same error.

My ES node details:

```
C:\>curl http://localhost:9200/
{
  "name" : "WKSP123",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "bf9rnqVkTgqxodt9UBulsg",
  "version" : {
    "number" : "7.5.0",
    "build_flavor" : "default",
    "build_type" : "zip",
    "build_hash" : "e9ccaed468e2fac2275a3761849cbee64b39519f",
    "build_date" : "2019-11-26T01:06:52.518245Z",
    "build_snapshot" : false,
    "lucene_version" : "8.3.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

```

Microsoft JDBC Driver used ( ver 6.0) :  
`https://www.microsoft.com/en-us/download/details.aspx?id=11774`

Any help will be greatly appreciated.

Please be descriptive. ( New to ES ) !

Thanks

---

<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:** [December 15, 2019, 6:33am UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/2 "2019-12-15T06:33:13Z")

</div>

Welcome!

It sounds like that the tool you are using is using an old version of elasticsearch client (2.x) which is definitely not compatible with elasticsearch 7.x.

If this project has a more recent version, use it. Otherwise have a look at Logstash and its jdbc input plugin.

---

<div class="post-metadata">

**Author:** ![sg70](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sg70](https://discuss.elastic.co/u/sg70)\
**Post date:** [December 15, 2019, 4:34pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/3 "2019-12-15T16:34:40Z")

</div>

@dadoonet  
Thanks for the quick response. Iam not using any special tool or project. Just using what came with Elastic search 7.5. The only other things that I downloaded were the the JDBC Driver (tried version 6.0 an 4.2 so far) from Microsoft and the elastic search jdbc plugin version 2.3.4.1 from here : [http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/](http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/)

The steps I have followed are listed here : [https://hintdesk.com/2016/08/12/how-to-connect-elasticsearch-to-ms-sql-server/](https://hintdesk.com/2016/08/12/how-to-connect-elasticsearch-to-ms-sql-server/)

The only difference I have in my steps is Step-5 where I have moved all the importer settings into a statefile.json and I pass that as an argument to the java command line parameters as shown in my previous post.

Anyhow how do I find out what version of ElasticSearch Client Iam using ? The curl command curl [http://localhost:9200/](http://localhost:9200/) only lists the Eleastic Serach server(?) version of 7.5

Thanks

---

<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:** [December 15, 2019, 6:03pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/4 "2019-12-15T18:03:08Z")

</div>

This project (([http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/](http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/)) is not part of elasticsearch.  
You probably downloaded it from somewhere but not from elastic website.

---

<div class="post-metadata">

**Author:** ![sg70](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sg70](https://discuss.elastic.co/u/sg70)\
**Post date:** [December 15, 2019, 6:14pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/5 "2019-12-15T18:14:16Z")

</div>

Thanks. What are my standard/native ES options to integrate with MS SQL Server 2016 ? Would greatly appreciate ay examples/walk-through/detailed explanation.

---

<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:** [December 15, 2019, 6:25pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/6 "2019-12-15T18:25:31Z")

</div>

I shared most of my thoughts there: [http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/](http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/)

Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.

---

<div class="post-metadata">

**Author:** ![sg70](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sg70](https://discuss.elastic.co/u/sg70)\
**Post date:** [December 15, 2019, 10:43pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/7 "2019-12-15T22:43:55Z")

</div>

`I shared most of my thoughts there: http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/`

Too high level and doesnt appear to be MSS SQL specific. Where can I find step-by-step explicit instructions for dummies to integrate with MS SQL Server 2016 ?

`Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.`

absolutely no idea what that means. There are no transactions in what Iam trying ( unless a SQL stmt is considered a transaction ) nor did I write any app to control anything. Can you kindly be more explicit/elaborate/detailed ?

Is there a detailed explanation on your website somewhere that I can use to integrate with MSSQL ?

---

<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:** [December 16, 2019, 12:22am UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/8 "2019-12-16T00:22:46Z")

</div>

> [@sg70](#):
>
> Where can I find step-by-step explicit instructions for dummies to integrate with MS SQL Server 2016 ?

I don't know.

Give a try to logstash and its jdbc input plugin if you don't want to try the proposal I shared in my blog post.

Even old, you can read also this which could help you: [INSERT INTO LOGSTASH SELECT DATA FROM DATABASE | Elastic Blog](https://www.elastic.co/blog/logstash-jdbc-input-plugin)

The reference guide is up to date and also contains useful information : [Jdbc input plugin | Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html)

If you are not successful, please share what you tried so far and what is failing. May be in #logstash forum if you are using logstash.

---

<div class="post-metadata">

**Author:** ![sg70](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sg70](https://discuss.elastic.co/u/sg70)\
**Post date:** [January 5, 2020, 7:55pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/9 "2020-01-05T19:55:08Z")

</div>

> **[How to copy SQL Server data to Elasticsearch using LogStash](https://codeshare.co.uk/blog/how-to-copy-sql-server-data-to-elasticsearch-using-logstash/)**
>
> How to copy SQL Server data to Elasticsearch using LogStash

That article helped me to get the ELK stack integrated with MSSQL.

---

<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:** [February 2, 2020, 7:55pm UTC](https://discuss.elastic.co/t/received-message-from-unsupported-version-2-0-0-minimal-compatible-version-is-6-8-0/211895/10 "2020-02-02T19:55:14Z")

</div>

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