uken / fluent-plugin-elasticsearch

Apache License 2.0
891 stars 310 forks source link

Installed un-desired version of elasticsearch client #1023

Closed shdluan closed 1 year ago

shdluan commented 1 year ago

(check apply)

Problem

my elasticsearch's version is 7.11.1, when I install fluent-plugin-elasticsearch, it default install elasticsearch:8.8.0, even if I already install elasticsearch:7.11.1 I tried use --with-elasticsearch-version=7.11.1, but it useless. As result it meets error: using elasticsearch client 8.8.0 is not compatible for you elasticsearch server

how could I install fluent-plugin-elasticsearch and specify the version of elasticsearch client

Steps to replicate

Either clone and modify https://gist.github.com/pitr/9a518e840db58f435911

OR

Provide example config and message

Expected Behavior or What you need to ask

...

Using Fluentd and ES plugin versions

shdluan commented 1 year ago

I used gem package manager tool bundle and resolved the problem tks

cosmo0920 commented 1 year ago

gem command always pulls the latest version of gems. Instead, you have to use bundler and create Gemfile which defines the dependencies like as: https://github.com/fluent/fluentd-kubernetes-daemonset/blob/master/docker-image/v1.16/debian-elasticsearch7/Gemfile

fluentd accepts --gemfile option and handles bundler installed gems. https://docs.fluentd.org/deployment/plugin-management#gemfile-option

shdluan commented 1 year ago

Dear friend: the bundle just resolved my questions.

thanks again for your reply.

thanks again !

Luan Shd

@. | ---- Replied Message ---- | From | Hiroshi @.> | | Date | 6/27/2023 11:57 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [uken/fluent-plugin-elasticsearch] Installed un-desired version of elasticsearch client (Issue #1023) |

gem command always pulls the latest version of gems. Instead, you have to use bundler and create Gemfile which defines the dependencies like as: https://github.com/fluent/fluentd-kubernetes-daemonset/blob/master/docker-image/v1.16/debian-elasticsearch7/Gemfile

fluentd accepts --gemfile option and handles bundler installed gems. https://docs.fluentd.org/deployment/plugin-management#gemfile-option

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>