概要
td-agentを使って、twitterのsamplingデータを取得している。td-agnetのバージョンを (4.1.1-1)
から (4.2.0-1)
へアップデートした。
その際、 fluent-plugin-twitter が動かなくなったので報告する。
エラー内容
$sudo systemctl restart td-agnet.service
をしてもエラーで起動しない。
次の様にsystemctlを使わず起動するとエラーが出色される。
/opt/td-agent/bin/fluentd --dry_run -c /etc/td-agent/td-agent.conf
エラーを見ると
because http_parser.rb-0.7.0 conflicts with http_parser.rb (~> 0.6.0)
というエラーが出る。
fluent-plugin-twitter
が http_paraser.rb の 0.6.0 が必要なところを、0.7.0が優先的に起動し、そちらでエラーになった模様。
回避策
調べた所、 http_parser.rb で 0.6.0と0.7.0の両方がインストールされていたので、0.7.0をアンイストールした。
$/opt/td-agent/bin/fluent-gem uninstall http_parser.rb
をすると、どちらのバージョンを削除するか聞いてくるので 0.7.0
を削除した。
環境
ubuntu20.04