zipkin icon indicating copy to clipboard operation
zipkin copied to clipboard

Can Zipkin support AWS Opensearch?

Open kendarkfire opened this issue 3 years ago • 5 comments
trafficstars

Feature

Can Zipkin support AWS Opensearch?

Rationale

Elasticsearch has changed license and it is not open source project anymore, AWS Opensearch is open source project and it is almost the same as elasticsearch7.10, but it failed to use opensearch directly with Zipkin because Zipkin check the version and only accept ES 5-7.X, opensearch latest version is 1.2.

kendarkfire avatar Feb 18 '22 00:02 kendarkfire

The Elasticsearch clients up to 7.12.x release could connect to Opensearch clusters, you may need to set the persistent.compatibility.override_main_response_version setting [1]:

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

In this regards, Opensearch is inplace replacement for Elasticsearch. But Elasticsearch clients 7.13+ would not work and dedicated Opensearch client has to be used.

Update: seems like Zipkin does not use official Elasticsearch client, setting the persistent.compatibility.override_main_response_version should enough, in this case Opensearch would return Elasticsearch's version.

[1] https://opensearch.org/blog/technical-posts/2021/10/moving-from-opensource-elasticsearch-to-opensearch/

reta avatar Feb 18 '22 00:02 reta

This is great, I just tried it and it works fine.

Thanks!

kendarkfire avatar Feb 18 '22 04:02 kendarkfire

Hi @kendarkfire, I added the persistent.compatibility.override_main_response_version parameter cluster settings. Still I am unable to load zipkin index in opensearch.

Will you please help me to integrate zipkin with Opensearch.

AWS Opensearch - v1.2 zipkin - v2.23, v2.21

MB-teamdevops avatar May 25 '22 13:05 MB-teamdevops

The override main response setting compatibility.override_main_response_version is deprecated from OpenSearch version 1.x and removed from OpenSearch 2.0.0. This setting is no longer supported for compatibility with legacy clients.

emanzat avatar Sep 20 '22 13:09 emanzat

@emanzat the change is indeed deprecated, was removed and reverted later on [1], it should be there for 2.x but very likely not in 3.x.

[1] https://github.com/opensearch-project/OpenSearch/pull/3530

reta avatar Sep 20 '22 14:09 reta