Where is fluent-gem for td-agent 2.0.2 on OSX?

829 views
Skip to first unread message

Michael Holroyd

unread,
Jun 27, 2014, 2:40:54 PM6/27/14
to flu...@googlegroups.com
Installed the experimental td-agent v2.0.2 for OSX but the /usr/lib/fluent folder doesn't exist. Is there a different way to install plugins?

Michael Holroyd

unread,
Jun 27, 2014, 2:50:41 PM6/27/14
to flu...@googlegroups.com
Found it in /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.50/bin/fluent-gem


Someone should update the changelog -- I had looked at this but it doesn't include 2.* changes: http://docs.treasuredata.com/articles/td-agent-changelog

Michael Holroyd

unread,
Jun 27, 2014, 3:04:31 PM6/27/14
to flu...@googlegroups.com
Further sadness:

meekohi ~$ /opt/td-agent/embedded/bin/fluent-gem

/opt/td-agent/embedded/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'fluentd' (>= 0) among 14 total gem(s) (Gem::LoadError)

from /opt/td-agent/embedded/lib/ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'

from /opt/td-agent/embedded/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'

from /opt/td-agent/embedded/bin/fluent-gem:22:in `<main>'

Michael Holroyd

unread,
Jun 27, 2014, 3:09:00 PM6/27/14
to flu...@googlegroups.com
Doesn't seem like 2.0.2 is actually using the embedded version of ruby. After installing the elasticsearch plugin via

/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.50/bin/fluent-gem install fluent-plugin-elastisearch

The process continues to crash with
2014-06-27 15:06:30 -0400 [error]: config error file="/etc/td-agent/td-agent.conf" error="Unknown output plugin 'elasticsearch'. Run 'gem search -rd fluent-plugin' to find plugins"

and I don't see the newly installed gem listed in the logs.

Masahiro Nakagawa

unread,
Jun 27, 2014, 3:23:50 PM6/27/14
to flu...@googlegroups.com
That's strange.

I and my colleagues don't hit such problem.
My result is below.

% /opt/td-agent/embedded/bin/fluent-gem
WARN: Unresolved specs during Gem::Specification.reset:
      yajl-ruby (~> 1.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
RubyGems is a sophisticated package manager for Ruby.  This is a
basic help message containing pointers to more information.

  Usage:
    gem -h/--help
    gem -v/--version
    gem command [arguments...] [options...]

  Examples:
    gem install rake
    gem list --local
    gem build package.gemspec
    gem help install

  Further help:

    gem help commands            list all 'gem' commands
    gem help examples            show some examples of usage
    gem help platforms           show information about platforms
    gem help <COMMAND>           show help on COMMAND
                                   (e.g. 'gem help install')
    gem server                   present a web page at
                                 http://localhost:8808/
                                 with info about installed gems
  Further information:
    http://guides.rubygems.org

Do you use rvm?

--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Holroyd

unread,
Jun 27, 2014, 5:04:50 PM6/27/14
to flu...@googlegroups.com
I do indeed use rvm - currently on rvm 1.25.27 (stable), could that be causing an issue?


--
You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/G8fGlyVN5TE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.

Masahiro Nakagawa

unread,
Jun 28, 2014, 5:18:44 AM6/28/14
to flu...@googlegroups.com
td-agent sometimes hits this problem on RVM environment.

Could you try "fluent-gem install" after disabled RVM or
add "env GEM_HOME=/opt/td-agent/embedded/lib/ruby/gems/2.1.0/ GEM_PATH=/opt/td-agent/embedded/lib/ruby/gems/2.1.0/" to "fluent-gem install".


Reply all
Reply to author
Forward
0 new messages