Skip to content

Instantly share code, notes, and snippets.

@sonots
Created May 20, 2014 04:57
Show Gist options
  • Save sonots/4140b205f7b8042d54d2 to your computer and use it in GitHub Desktop.
Save sonots/4140b205f7b8042d54d2 to your computer and use it in GitHub Desktop.
for td-agent2
[treasuredata]
name=TreasureData
baseurl=http://td-agent-repository.s3-website-us-east-1.amazonaws.com/redhat/$releasever/$basearch
gpgcheck=1
gpgkey=http://packages.treasure-data.com/redhat/RPM-GPG-KEY-td-agent
@sonots
Copy link
Author

sonots commented May 20, 2014

$ sudo rpm -ql td-agent2 | awk -F/ '{print "/" $2 "/" $3 "/" $4 "/" $5}' | sort -u
/opt/td-agent/bin/.gitkeep
/opt/td-agent/embedded/bin
/opt/td-agent/embedded/include
/opt/td-agent/embedded/lib
/opt/td-agent/embedded/man
/opt/td-agent/embedded/share
/opt/td-agent/embedded/ssl
/opt/td-agent/etc/init.d
/opt/td-agent/etc/td-agent
/opt/td-agent/usr/bin
/opt/td-agent/usr/sbin
/opt/td-agent/version-manifest.txt/

@sonots
Copy link
Author

sonots commented May 20, 2014

/opt/td-agent/embedded/bin の下に fluent-gem や ruby などが入っている。

$ /opt/td-agent/usr/sbin/td-agent
#!/opt/td-agent/embedded/bin/ruby
ENV["GEM_HOME"]="/opt/td-agent/embedded/lib/ruby/gems/2.1.0/"
ENV["GEM_PATH"]="/opt/td-agent/embedded/lib/ruby/gems/2.1.0/"
ENV["FLUENT_CONF"]="/etc/td-agent/td-agent.conf"
ENV["FLUENT_PLUGIN"]="/etc/td-agent/plugin"
ENV["FLUENT_SOCKET"]="/var/run/td-agent/td-agent.sock"
load "/opt/td-agent/embedded/bin/fluentd"

/etc/init.d/td-agent では --use-v1-config がデフォルト。オフにするには??

@sonots
Copy link
Author

sonots commented May 22, 2014

DirectoryIndex がなくて repodata あさらざるを得なかったけど、rpm はこんなかんじでおいてある。

$ wget http://td-agent-repository.s3-website-us-east-1.amazonaws.com/redhat/5/i386/td-agent2-1.0.0-0.el5.i686.rpm

@sonots
Copy link
Author

sonots commented May 22, 2014

td-agent を入れようとすると obsoletes と言われる場合は、--disablerepo=treasuredata (td-agent2 のやつ) すれば良い。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment