fluent-plugin-kafka 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -0
- data/ChangeLog +4 -0
- data/fluent-plugin-kafka.gemspec +1 -1
- data/lib/fluent/plugin/kafka_plugin_util.rb +6 -0
- data/lib/fluent/plugin/out_kafka.rb +5 -1
- data/lib/fluent/plugin/out_kafka_buffered.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3700ac3c6331871e2aedab749485af0a85da5036516a529d648dae8a7a6b9b15
|
4
|
+
data.tar.gz: 3e228b9f8434435b19a46756a040a9103fff106ffcafbc3c2dfec186d6c3e619
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f9ecd9b37070352a23f9e689bf2ad36a830934953e5def18cd4e1097fa3e38145f67bf9ab43a5e4b4d10aa410e07e0de0b143f6a30154c21e287176a599050
|
7
|
+
data.tar.gz: fe61f987f8190529a2b7a3dfd40be7dfe97d30e44cb1274668b6f8a9216d9a0d43453bcf299ceeb5e9d45a7e10f46e1f3e2bd127b5644f812e3886d217034c53
|
data/.travis.yml
CHANGED
data/ChangeLog
CHANGED
data/fluent-plugin-kafka.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "fluent-plugin-kafka"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = '0.7.
|
16
|
+
gem.version = '0.7.3'
|
17
17
|
gem.required_ruby_version = ">= 2.1.0"
|
18
18
|
|
19
19
|
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
@@ -22,6 +22,12 @@ module Fluent
|
|
22
22
|
File.read(path)
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
def pickup_ssl_endpoint(node)
|
27
|
+
ssl_endpoint = node['endpoints'].find {|e| e.start_with?('SSL')}
|
28
|
+
raise 'no SSL endpoint found on Zookeeper' unless ssl_endpoint
|
29
|
+
return [URI.parse(ssl_endpoint).host, URI.parse(ssl_endpoint).port].join(':')
|
30
|
+
end
|
25
31
|
end
|
26
32
|
|
27
33
|
module SaslSettings
|
@@ -90,7 +90,11 @@ DESC
|
|
90
90
|
z = Zookeeper.new(@zookeeper)
|
91
91
|
z.get_children(:path => @zookeeper_path)[:children].each do |id|
|
92
92
|
broker = Yajl.load(z.get(:path => @zookeeper_path + "/#{id}")[:data])
|
93
|
-
@
|
93
|
+
if @ssl_client_cert
|
94
|
+
@seed_brokers.push(pickup_ssl_endpoint(broker))
|
95
|
+
else
|
96
|
+
@seed_brokers.push("#{broker['host']}:#{broker['port']}")
|
97
|
+
end
|
94
98
|
end
|
95
99
|
z.close
|
96
100
|
log.info "brokers has been refreshed via Zookeeper: #{@seed_brokers}"
|
@@ -111,7 +111,11 @@ DESC
|
|
111
111
|
z = Zookeeper.new(@zookeeper)
|
112
112
|
z.get_children(:path => @zookeeper_path)[:children].each do |id|
|
113
113
|
broker = Yajl.load(z.get(:path => @zookeeper_path + "/#{id}")[:data])
|
114
|
-
@
|
114
|
+
if @ssl_client_cert
|
115
|
+
@seed_brokers.push(pickup_ssl_endpoint(broker))
|
116
|
+
else
|
117
|
+
@seed_brokers.push("#{broker['host']}:#{broker['port']}")
|
118
|
+
end
|
115
119
|
end
|
116
120
|
z.close
|
117
121
|
log.info "brokers has been refreshed via Zookeeper: #{@seed_brokers}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hidemasa Togashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.6
|
141
|
+
rubygems_version: 2.7.6
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Fluentd plugin for Apache Kafka > 0.8
|