fluent / fluent-plugin-opensearch

OpenSearch Plugin for Fluentd
Apache License 2.0
58 stars 20 forks source link

uninitialized constant OpenSearch::Transport::Transport::Serializer #98

Closed dzaczek closed 11 months ago

dzaczek commented 1 year ago

(check apply)

Steps to replicate

Fresh installation on ubuntu opensearch version 2.6

install flaunted with td-agent from repository and plugging opensearch (td-agent-gem install flue..-opensearch) Configure fluentd :

<source>
  @type dummy
  tag dummy
  dumy {"Meou ":"World"}

</source>

<match dummy>
  @type opensearch
  host localhost
  port 9200
  logstash_format true
  user admin
  password admin
</match>

Then tun td-agent


Apr 12 11:31:36 UbUntU systemd[1]: Starting td-agent: Fluentd based data collector for Treasure Data...
░░ Subject: A start job for unit td-agent.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit td-agent.service has begun execution.
░░
░░ The job identifier is 1756.
Apr 12 11:31:37 UbUntU fluentd[4775]: /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluent-plugin-opensearch-1.1.0/lib/fluent/plugin/oj_serializer.rb:33:in `<class:Oj>': uninitialized constant OpenSearch::Transport::Transport::Serializer (NameError)
Apr 12 11:31:37 UbUntU fluentd[4775]:       include OpenSearch::Transport::Transport::Serializer::Base
Apr 12 11:31:37 UbUntU fluentd[4775]:                                               ^^^^^^^^^^^^
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluent-plugin-opensearch-1.1.0/lib/fluent/plugin/oj_serializer.rb:32:in `<module:Serializer>'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluent-plugin-opensearch-1.1.0/lib/fluent/plugin/oj_serializer.rb:30:in `<module:Plugin>'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluent-plugin-opensearch-1.1.0/lib/fluent/plugin/oj_serializer.rb:29:in `<top (required)>'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluent-plugin-opensearch-1.1.0/lib/fluent/plugin/out_opensearch.rb:54:in `require_relative'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluent-plugin-opensearch-1.1.0/lib/fluent/plugin/out_opensearch.rb:54:in `<top (required)>'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from <internal:/opt/td-agent/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from <internal:/opt/td-agent/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/registry.rb:103:in `block in search'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/registry.rb:100:in `each'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/registry.rb:100:in `search'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/registry.rb:44:in `lookup'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/plugin.rb:169:in `new_impl'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/plugin.rb:114:in `new_output'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/agent.rb:130:in `add_match'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/agent.rb:74:in `block in configure'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/agent.rb:64:in `each'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/agent.rb:64:in `configure'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/root_agent.rb:149:in `configure'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/engine.rb:105:in `configure'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/engine.rb:80:in `run_configure'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/supervisor.rb:731:in `run_supervisor'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/lib/fluent/command/fluentd.rb:350:in `<top (required)>'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from <internal:/opt/td-agent/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from <internal:/opt/td-agent/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/lib/ruby/gems/3.1.0/gems/fluentd-1.15.3/bin/fluentd:15:in `<top (required)>'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/bin/fluentd:25:in `load'
Apr 12 11:31:37 UbUntU fluentd[4775]:         from /opt/td-agent/bin/fluentd:25:in `<main>'
Apr 12 11:31:37 UbUntU systemd[1]: td-agent.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ ore--
░░ An Ex

Expected Behavior or What you need to ask

Connect to opensearch ...

Using Fluentd and OpenSearch plugin versions

dzaczek commented 1 year ago

I checked affecting this version

td-agent 4 (experimental) curl -fsSL https://toolbelt.treasuredata.com/sh/install-ubuntu-jammy-td-agent4.sh | sh

cosmo0920 commented 11 months ago

Should be completed in #116.