LoginSignup
30
39

More than 5 years have passed since last update.

td-agent(Fluentd)をバージョン指定でインストールする

Last updated at Posted at 2014-11-03

公式ページから推奨されているインストール方法はinstall-redhat-td-agent2.shを実行してインストールする
実際は、/etc/yum.repos.d/td.repoを保存してyum updateしているだけ

$ curl -L http://toolbelt.treasuredata.com/sh/install-redhat-td-agent2.sh | sh

この方法だと常に最新版がダウンロードされるが、いろいろな都合により旧バージョンで試したいときがある
その方法を下記に記載する。

方法

現バージョンの確認

$ td-agent --version

出力結果

td-agent 0.10.55

RPM

$ rpm -qi td-agent
Name        : td-agent
Version     : 1.1.21
Release     : 0
Architecture: x86_64
Install Date: 2014年10月31日 02時12分37秒
Group       : System Environment/Daemons
Size        : 103551538
License     : APL2
Signature   : DSA/SHA1, 2014年10月20日 13時07分39秒, Key ID 1093db45a12e206f
Source RPM  : td-agent-1.1.21-0.src.rpm
Build Date  : 2014年10月20日 08時31分13秒
Build Host  : ip-10-123-31-198.ec2.internal
Relocations : (not relocatable)
Vendor      : Treasure Data, Inc.
URL         : http://treasure-data.com/
Summary     : td-agent
Description :

パッケージ一覧の取得

td-agentのパッケージは以下のページからダウンロードできる
http://packages.treasure-data.com/

もともとは、/etc/yum.repos.d/td.repoの中のbaseurlに記載されていいたのを見つけてきた

[treasuredata]
name=TreasureData
baseurl=http://packages.treasuredata.com/redhat/$basearch
gpgcheck=1
gpgkey=http://packages.treasuredata.com/GPG-KEY-td-agent

パッケージの入れ替え

もし前のバージョンをインストールしていたら削除する

$ sudo yum -y remove td-agent

任意のバージョンを指定してインストールする

今回は、1つ前のバージョンのパッケージを選択
td-agent-1.1.20-0.x86_64.rpm

$ sudo rpm -ivh http://packages.treasuredata.com.s3.amazonaws.com/redhat/x86_64/td-agent-1.1.20-0.x86_64.rpm

確認する

$ rpm -qi td-agent

出力結果

Name        : td-agent
Version     : 1.1.20
Release     : 0
Architecture: x86_64
Install Date: 2014年11月03日 02時39分38秒
Group       : System Environment/Daemons
Size        : 114262465
License     : APL2
Signature   : DSA/SHA1, 2014年06月19日 09時05分57秒, Key ID 1093db45a12e206f
Source RPM  : td-agent-1.1.20-0.src.rpm
Build Date  : 2014年06月19日 07時08分27秒
Build Host  : ip-10-123-31-198.ec2.internal
Relocations : (not relocatable)
Vendor      : Treasure Data, Inc.
URL         : http://treasure-data.com/
Summary     : td-agent
Description :

参考情報

The td-agent ChangeLog

30
39
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30
39