fluent-plugin-kinesis 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +6 -2
- data/CHANGELOG.md +5 -0
- data/gemfiles/Gemfile.fluentd-1.9.1 +20 -0
- data/gemfiles/Gemfile.td-agent-3.5.1 +31 -0
- data/lib/fluent/plugin/kinesis.rb +10 -1
- data/lib/fluent_plugin_kinesis/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 87249672c8b4c4b51c61c09275f9b0a4a3fd91ed730360c7b1d6f59114832bc4
|
4
|
+
data.tar.gz: ebafe8d59f1dd4e6321f7489c8df8ba5e012ecfc0ed6cab2ee22037b263cb5a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83eebfea01f821aaab9c8d9771253ed4b8e30c4c6430547696f19c462789c1bba51c36d9a2d57f63bb83c3f8d87379fe9d9f6561f6fc71bff01edb3f87f8ce5b
|
7
|
+
data.tar.gz: 82b7b17dc7b4960cb221bc2e69b603770c44334a08ce3643acdbe8c033ccd2871bd4136eaa614dec8ccd0c3a6ecee9576f14bc7ee2bb465d519889505ebd9a44
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -4,14 +4,16 @@ sudo: false
|
|
4
4
|
|
5
5
|
gemfile:
|
6
6
|
- Gemfile
|
7
|
-
- gemfiles/Gemfile.td-agent-3.5.
|
7
|
+
- gemfiles/Gemfile.td-agent-3.5.1
|
8
8
|
|
9
9
|
# Test with supported td-agent versions
|
10
10
|
# https://support.treasuredata.com/hc/en-us/articles/360001479187-The-td-agent-ChangeLog
|
11
11
|
matrix:
|
12
12
|
include:
|
13
|
+
- rvm: 2.6.5
|
14
|
+
gemfile: gemfiles/Gemfile.fluentd-1.9.1 # Latest Fluentd
|
13
15
|
- rvm: 2.4.1
|
14
|
-
gemfile: gemfiles/Gemfile.fluentd-0.14.22
|
16
|
+
gemfile: gemfiles/Gemfile.fluentd-0.14.22 # Oldest supported Fluentd
|
15
17
|
- rvm: 2.4.2 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.1.0/config/projects/td-agent3.rb#L20
|
16
18
|
gemfile: gemfiles/Gemfile.td-agent-3.1.0
|
17
19
|
- rvm: 2.4.2 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.1.1/config/projects/td-agent3.rb#L17
|
@@ -26,6 +28,8 @@ matrix:
|
|
26
28
|
gemfile: gemfiles/Gemfile.td-agent-3.4.1
|
27
29
|
- rvm: 2.4.6 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.5.0/config/projects/td-agent3.rb#L22
|
28
30
|
gemfile: gemfiles/Gemfile.td-agent-3.5.0
|
31
|
+
- rvm: 2.4.9 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.5.1/config/projects/td-agent3.rb#L22
|
32
|
+
gemfile: gemfiles/Gemfile.td-agent-3.5.1
|
29
33
|
fast_finish: true
|
30
34
|
|
31
35
|
script: bundle exec rake test
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 3.2.1
|
4
|
+
|
5
|
+
- Enhancement - Use Fluent::MessagePackFactory class methods instead of Mixin with Fluentd >= v1.8 : [#194](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/194) [#195](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/195)
|
6
|
+
- Enhancement - Add td-agent 3.5.1 and Fluentd 1.9.1 to test cases
|
7
|
+
|
3
8
|
## 3.2.0
|
4
9
|
|
5
10
|
- Feature - Add placeholder support for stream names to send records to multiple streams : [#165](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/165) [#174](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/174)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2014-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
5
|
+
# may not use this file except in compliance with the License. A copy of
|
6
|
+
# the License is located at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# or in the "license" file accompanying this file. This file is
|
11
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
+
# ANY KIND, either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
source 'https://rubygems.org'
|
16
|
+
|
17
|
+
# Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
|
18
|
+
gemspec path: ".."
|
19
|
+
|
20
|
+
gem "fluentd", "1.9.1"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2014-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
5
|
+
# may not use this file except in compliance with the License. A copy of
|
6
|
+
# the License is located at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# or in the "license" file accompanying this file. This file is
|
11
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
+
# ANY KIND, either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
source 'https://rubygems.org'
|
16
|
+
|
17
|
+
# Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
|
18
|
+
gemspec path: ".."
|
19
|
+
|
20
|
+
# Specify related gems for td-agent v3.5.1
|
21
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.5.1/config/projects/td-agent3.rb#L27
|
22
|
+
gem "fluentd", "1.7.4"
|
23
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.5.1/plugin_gems.rb#L16-L23
|
24
|
+
gem "jmespath", "1.4.0"
|
25
|
+
gem "aws-partitions", "1.230.0"
|
26
|
+
gem "aws-sigv4", "1.1.0"
|
27
|
+
gem "aws-sdk-core", "3.72.0"
|
28
|
+
gem "aws-sdk-kms", "1.25.0"
|
29
|
+
gem "aws-sdk-sqs", "1.23.0"
|
30
|
+
gem "aws-sdk-s3", "1.52.0"
|
31
|
+
gem "fluent-plugin-s3", "1.2.0"
|
@@ -12,6 +12,8 @@
|
|
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
|
+
require 'fluent/version'
|
16
|
+
require 'fluent/msgpack_factory'
|
15
17
|
require 'fluent/plugin/output'
|
16
18
|
require 'fluent/plugin/kinesis_helper/client'
|
17
19
|
require 'fluent/plugin/kinesis_helper/api'
|
@@ -20,7 +22,6 @@ require 'zlib'
|
|
20
22
|
module Fluent
|
21
23
|
module Plugin
|
22
24
|
class KinesisOutput < Fluent::Plugin::Output
|
23
|
-
include Fluent::MessagePackFactory::Mixin
|
24
25
|
include KinesisHelper::Client
|
25
26
|
include KinesisHelper::API
|
26
27
|
|
@@ -133,6 +134,14 @@ module Fluent
|
|
133
134
|
''
|
134
135
|
end
|
135
136
|
|
137
|
+
if Gem::Version.new(Fluent::VERSION) >= Gem::Version.new('1.8.0')
|
138
|
+
def msgpack_unpacker(*args)
|
139
|
+
Fluent::MessagePackFactory.msgpack_unpacker(*args)
|
140
|
+
end
|
141
|
+
else
|
142
|
+
include Fluent::MessagePackFactory::Mixin
|
143
|
+
end
|
144
|
+
|
136
145
|
def write_records_batch(chunk, &block)
|
137
146
|
unique_id = chunk.dump_unique_id_hex(chunk.unique_id)
|
138
147
|
chunk.open do |io|
|
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: 3.2.
|
4
|
+
version: 3.2.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:
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -284,6 +284,7 @@ files:
|
|
284
284
|
- benchmark/task.rake
|
285
285
|
- fluent-plugin-kinesis.gemspec
|
286
286
|
- gemfiles/Gemfile.fluentd-0.14.22
|
287
|
+
- gemfiles/Gemfile.fluentd-1.9.1
|
287
288
|
- gemfiles/Gemfile.td-agent-3.1.0
|
288
289
|
- gemfiles/Gemfile.td-agent-3.1.1
|
289
290
|
- gemfiles/Gemfile.td-agent-3.2.0
|
@@ -291,6 +292,7 @@ files:
|
|
291
292
|
- gemfiles/Gemfile.td-agent-3.3.0
|
292
293
|
- gemfiles/Gemfile.td-agent-3.4.1
|
293
294
|
- gemfiles/Gemfile.td-agent-3.5.0
|
295
|
+
- gemfiles/Gemfile.td-agent-3.5.1
|
294
296
|
- lib/fluent/plugin/kinesis.rb
|
295
297
|
- lib/fluent/plugin/kinesis_helper/aggregator.rb
|
296
298
|
- lib/fluent/plugin/kinesis_helper/api.rb
|
@@ -318,8 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
320
|
- !ruby/object:Gem::Version
|
319
321
|
version: '0'
|
320
322
|
requirements: []
|
321
|
-
|
322
|
-
rubygems_version: 2.6.14.1
|
323
|
+
rubygems_version: 3.0.3
|
323
324
|
signing_key:
|
324
325
|
specification_version: 4
|
325
326
|
summary: Fluentd output plugin that sends events to Amazon Kinesis.
|