couchbase Elasticsearch Connector

Hello,
I migrated from opendistro to opensearch, and since the migration the couchbase elasticsearch connector does not work anymore because of the version of opensearch, I have this error message: Failed to connect to Elasticsearch. New attempt in 16s
java.lang.RuntimeException: Elasticsearch version 2.0.0 or later required; the current version is 1.2.3, apparently the connector is a bit stupid since it thinks it’s elasticsearch and not opensearch, is there a solution for that?

Hi,

You may need to configure the compatibility setting [1], so the connector would get the recognizable version:

PUT _cluster/settings
{
  "persistent": {
    "compatibility": {
      "override_main_response_version": true
    }
  }
}

[1] Moving from open source Elasticsearch to OpenSearch · OpenSearch

2 Likes

@RAMZI Did @reta’s solution work out for you?

thank you for saving me, it works fine now !! :grin:

1 Like