【追記あり】td-agent2 + fluent-plugin-bigqueryで、起動時にエラーになる問題
【追記】
@naoya_ito @oranie v0.2.6 だしました
2014-12-22 19:53:09 via YoruFukurou to @naoya_ito
との事で直りました。このエントリの寿命1時間くらいでした!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
もうISSUE上がっているけど、同様のエラーが出た。
https://github.com/kaizenplatform/fluent-plugin-bigquery/pull/31
要するにgoogle-api-clientが古い。ただ、
/opt/td-agent/usr/sbin/td-agent-gem update google-api-client
でやってもfluent-plugin-bigqueryが使うのが
https://github.com/kaizenplatform/fluent-plugin-bigquery/blob/master/fluent-plugin-bigquery.gemspec
にも書かれているが、
spec.add_runtime_dependency "google-api-client", "~> 0.7.1"
なので、以下は自己責任でお願いします。とりあえず
git clone https://github.com/kaizenplatform/fluent-plugin-bigquery.git
で現行のソース拾ってきて、
fluent-plugin-bigquery.gemspec の spec.add_runtime_dependency "google-api-client", "~> 0.7.1" を https://github.com/hakobera/fluent-plugin-bigquery/commit/57253b092d3d023755f167741c2c7eb0aed515ea で修正されている spec.add_runtime_dependency "google-api-client", "~> 0.8.0"
に書き換えて
rake build して出来上がったやつを /opt/td-agent/usr/sbin/td-agent-gem install -l ./pkg/fluent-plugin-bigquery-0.2.5.gem で入れた
以上です。