fluent-plugin-kinesis 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Makefile +7 -5
- data/README.md +5 -2
- data/fluent-plugin-kinesis.gemspec +9 -2
- data/gemfiles/{Gemfile.fluentd-0.12 → Gemfile.td-agent-2.3.5} +6 -1
- data/lib/fluent/plugin/kinesis_helper/client.rb +14 -2
- data/lib/fluent_plugin_kinesis/version.rb +1 -1
- metadata +13 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b0377336aca16e998f29f478eaf04265dd8b771
|
4
|
+
data.tar.gz: ec110cd43b0f3dd16f6a9f4bbadf236c97fc46e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af17bc14e59b32a101cd0f774ae29df5213dd2b333b9af1c8c2697fc847ecbd86d8f35a6f4a4690602eb07c4184d71fa00c332002312a63ed52f81d55824e2cb
|
7
|
+
data.tar.gz: f6e7c4ff10c85ddc8da01456f58d8c41e1b0062d89ab102a5f5f8848cc945852dbb0b274f2402c687fa5a32ffeee3cc29e564297a8ea2e611023639e3678c40d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.0.1
|
4
|
+
|
5
|
+
- Bug - Fix AWS SDK conflict with s3 plugin [#131](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/131)
|
6
|
+
|
3
7
|
## 2.0.0
|
4
8
|
|
5
9
|
- Feature - Add `kinesis_streams_aggregated` ouput plugin [#107](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/107)
|
data/Makefile
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
# ANY KIND, either express or implied. See the License for the specific
|
13
13
|
# language governing permissions and limitations under the License.
|
14
14
|
|
15
|
-
.PHONY: run run-
|
15
|
+
.PHONY: run run-td-agent-2.3.5 test test-td-agent-2.3.5 install $(wildcard test/test_*.rb) $(wildcard test/**/test_*.rb) benchmark benchmark-remote
|
16
16
|
|
17
17
|
all:
|
18
18
|
bundle install
|
@@ -20,14 +20,16 @@ all:
|
|
20
20
|
run:
|
21
21
|
bundle exec fluentd -v
|
22
22
|
|
23
|
-
run-
|
24
|
-
BUNDLE_GEMFILE=./gemfiles/Gemfile.
|
23
|
+
run-td-agent-2.3.5:
|
24
|
+
RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle update
|
25
|
+
RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle exec fluentd -v
|
25
26
|
|
26
27
|
test:
|
27
28
|
bundle exec rake test
|
28
29
|
|
29
|
-
test-
|
30
|
-
BUNDLE_GEMFILE=./gemfiles/Gemfile.
|
30
|
+
test-td-agent-2.3.5:
|
31
|
+
RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle update
|
32
|
+
RBENV_VERSION=2.1.10 BUNDLE_GEMFILE=./gemfiles/Gemfile.td-agent-2.3.5 bundle exec rake test
|
31
33
|
|
32
34
|
install:
|
33
35
|
bundle exec rake install:local
|
data/README.md
CHANGED
@@ -11,6 +11,8 @@ that sends events to [Amazon Kinesis Streams][streams] and [Amazon Kinesis Fireh
|
|
11
11
|
|
12
12
|
Also, there is a [documentation on Fluentd official site][fluentd-doc-kinesis].
|
13
13
|
|
14
|
+
**Note**: This README is for v2.x. If you use v1.x, see the [old README][v1-readme].
|
15
|
+
|
14
16
|
## Installation
|
15
17
|
This fluentd plugin is available as the `fluent-plugin-kinesis` gem from RubyGems.
|
16
18
|
|
@@ -47,7 +49,7 @@ Or just download specify your Ruby library path. Below is the sample for specify
|
|
47
49
|
|
48
50
|
## Dependencies
|
49
51
|
* Ruby 2.1.0+
|
50
|
-
* Fluentd 0.12.35+
|
52
|
+
* Fluentd 0.12.35+ (supporting 0.14.x)
|
51
53
|
|
52
54
|
## Basic Usage
|
53
55
|
Here are general procedures for using this plugin:
|
@@ -377,7 +379,7 @@ To launch `fluentd` process with this plugin for development, follow the steps b
|
|
377
379
|
|
378
380
|
To launch using Fluentd v0.12, use `BUNDLE_GEMFILE` environment variable:
|
379
381
|
|
380
|
-
BUNDLE_GEMFILE=$PWD/gemfiles/Gemfile.
|
382
|
+
BUNDLE_GEMFILE=$PWD/gemfiles/Gemfile.td-agent-2.3.5 bundle exec fluentd -c /path/to/fluent.conf
|
381
383
|
|
382
384
|
## Contributing
|
383
385
|
|
@@ -401,3 +403,4 @@ Bug reports and pull requests are welcome on [GitHub][github].
|
|
401
403
|
[inject.rb]: https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin_helper/inject.rb
|
402
404
|
[fluentd-doc-kinesis]: http://docs.fluentd.org/articles/kinesis-stream
|
403
405
|
[fluent-plugin-s3]: https://github.com/fluent/fluent-plugin-s3
|
406
|
+
[v1-readme]: https://github.com/awslabs/aws-fluent-plugin-kinesis/blob/v1/README.md
|
@@ -31,8 +31,15 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.required_ruby_version = '>= 2.1'
|
32
32
|
|
33
33
|
spec.add_dependency "fluentd", ">= 0.12.35", "< 2"
|
34
|
-
spec.add_dependency "aws-sdk
|
35
|
-
|
34
|
+
spec.add_dependency "aws-sdk", ">= 2.9.9", "< 4"
|
35
|
+
# TODO: fluent-plugin-s3 depends on v2 only.
|
36
|
+
# https://github.com/fluent/fluent-plugin-s3/issues/208
|
37
|
+
#
|
38
|
+
# This plugin is sometimes used with s3 plugin.
|
39
|
+
# Unless s3 plugin is updated to be available with v3,
|
40
|
+
# this plugin should depend on v2 only.
|
41
|
+
# spec.add_dependency "aws-sdk-kinesis", "~> 1"
|
42
|
+
# spec.add_dependency "aws-sdk-firehose", "~> 1"
|
36
43
|
spec.add_dependency "google-protobuf", "~> 3"
|
37
44
|
|
38
45
|
spec.add_development_dependency "bundler", "~> 1.10"
|
@@ -17,4 +17,9 @@ source 'https://rubygems.org'
|
|
17
17
|
# Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
|
18
18
|
gemspec path: ".."
|
19
19
|
|
20
|
-
|
20
|
+
# Specify related gems for td-agent v2.3.5
|
21
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/release-2.3.5/config/projects/td-agent2.rb#L23
|
22
|
+
gem "fluentd", "0.12.35"
|
23
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/release-2.3.5/plugin_gems.rb#L13-L15
|
24
|
+
gem "fluent-plugin-s3", "0.8.2"
|
25
|
+
gem "aws-sdk", "2.9.9"
|
@@ -76,13 +76,25 @@ module Fluent
|
|
76
76
|
|
77
77
|
private
|
78
78
|
|
79
|
+
def aws_sdk_v2?
|
80
|
+
@aws_sdk_v2 ||= Gem.loaded_specs['aws-sdk-core'].version < Gem::Version.create('3')
|
81
|
+
end
|
82
|
+
|
79
83
|
def client_class
|
80
84
|
case request_type
|
81
85
|
when :streams, :streams_aggregated
|
82
|
-
|
86
|
+
if aws_sdk_v2?
|
87
|
+
require 'aws-sdk'
|
88
|
+
else
|
89
|
+
require 'aws-sdk-kinesis'
|
90
|
+
end
|
83
91
|
Aws::Kinesis::Client
|
84
92
|
when :firehose
|
85
|
-
|
93
|
+
if aws_sdk_v2?
|
94
|
+
require 'aws-sdk'
|
95
|
+
else
|
96
|
+
require 'aws-sdk-firehose'
|
97
|
+
end
|
86
98
|
Aws::Firehose::Client
|
87
99
|
end
|
88
100
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -31,33 +31,25 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name: aws-sdk
|
34
|
+
name: aws-sdk
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
37
|
+
- - ">="
|
45
38
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
-
|
48
|
-
name: aws-sdk-firehose
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
39
|
+
version: 2.9.9
|
40
|
+
- - "<"
|
52
41
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
42
|
+
version: '4'
|
54
43
|
type: :runtime
|
55
44
|
prerelease: false
|
56
45
|
version_requirements: !ruby/object:Gem::Requirement
|
57
46
|
requirements:
|
58
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.9.9
|
50
|
+
- - "<"
|
59
51
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
52
|
+
version: '4'
|
61
53
|
- !ruby/object:Gem::Dependency
|
62
54
|
name: google-protobuf
|
63
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,7 +236,7 @@ files:
|
|
244
236
|
- Rakefile
|
245
237
|
- benchmark/task.rake
|
246
238
|
- fluent-plugin-kinesis.gemspec
|
247
|
-
- gemfiles/Gemfile.
|
239
|
+
- gemfiles/Gemfile.td-agent-2.3.5
|
248
240
|
- lib/fluent/plugin/kinesis.rb
|
249
241
|
- lib/fluent/plugin/kinesis_helper/aggregator.rb
|
250
242
|
- lib/fluent/plugin/kinesis_helper/api.rb
|