fluent-plugin-kafka 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eac190de45814d289eb9e82f469f4d5a2af50296
4
- data.tar.gz: 1b2217fa4de6d4be5d5ba7e05618fbb9dd0b6c92
3
+ metadata.gz: f58dd81646c8ff29f5f9e55bb200fda728ef83f1
4
+ data.tar.gz: 2b47f106dfebc12704d5b751290bfff7a42a44ad
5
5
  SHA512:
6
- metadata.gz: 840c3ee94d3830a43bc6d503bad1676f340730b0a15b4f47bfec31f838fd09aae7029d093cda3b37e39ec3a1fe82908ed8f9ad49e877acb2d49ebee82d4fe520
7
- data.tar.gz: 242b6180a85333ba0536f5e0598db0b121ab03a14dae605188845b1b020542787ce8198a1dbac22286fbd854d7e19b6cf38553574ead496b3edf19b356f73287
6
+ metadata.gz: 6ecc97a6901090f2f9cd54df11e0af55bc9df901ae6c5186867bd14f26796e762b8d1b3e3140d050827408094adb3d0f99a849bd4171d466e4bbe05b806b2cb8
7
+ data.tar.gz: 41800c1ddd32cd17cccb0af7cdaff2da11e3f7354f050c4b554ce35aeafb1ddff486f41dcee41806dc9ee002cb0c068025183d9e96996e6c45dba4337c10740b
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in fluent-plugin-kafka-poseidon.gemspec
3
+ # Specify your gem's dependencies in fluent-plugin-kafka.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -20,22 +20,30 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install fluent-plugin-kafka
22
22
 
23
+ ## Requirements
24
+
25
+ - Ruby 2.1 or later
26
+ - Input plugins work with kafka v0.9 or later
27
+ - Output plugins work with kafka v0.8 or later
28
+
23
29
  ## Usage
24
30
 
25
31
  ### Input plugin (@type 'kafka')
26
32
 
33
+ Consume events by single consumer.
34
+
27
35
  <source>
28
36
  @type kafka
29
37
 
30
38
  brokers <broker1_host>:<broker1_port>,<broker2_host>:<broker2_port>,..
31
39
  topics <listening topics(separate with comma',')>
32
- format <input text type (text|json|ltsv|msgpack)>
40
+ format <input text type (text|json|ltsv|msgpack)> :default => json
33
41
  message_key <key (Optional, for text format only, default is message)>
34
42
  add_prefix <tag prefix (Optional)>
35
43
  add_suffix <tag suffix (Optional)>
36
44
 
37
45
  # Optionally, you can manage topic offset by using zookeeper
38
- offset_zookeeper <zookeer node list (<zookeeper1_host>:<zookeeper1_port>,<zookeeper2_host>:<zookeeper2_port>,..)>
46
+ offset_zookeeper <zookeer node list (<zookeeper1_host>:<zookeeper1_port>,<zookeeper2_host>:<zookeeper2_port>,..)>
39
47
  offset_zk_root_node <offset path in zookeeper> default => '/fluent-plugin-kafka'
40
48
 
41
49
  # ruby-kafka consumer options
@@ -67,13 +75,15 @@ See also [ruby-kafka README](https://github.com/zendesk/ruby-kafka#consuming-mes
67
75
 
68
76
  ### Input plugin (@type 'kafka_group', supports kafka group)
69
77
 
78
+ Consume events by kafka consumer group features..
79
+
70
80
  <source>
71
81
  @type kafka_group
72
82
 
73
83
  brokers <broker1_host>:<broker1_port>,<broker2_host>:<broker2_port>,..
74
84
  consumer_group <consumer group name, must set>
75
85
  topics <listening topics(separate with comma',')>
76
- format <input text type (text|json|ltsv|msgpack)>
86
+ format <input text type (text|json|ltsv|msgpack)> :default => json
77
87
  message_key <key (Optional, for text format only, default is message)>
78
88
  add_prefix <tag prefix (Optional)>
79
89
  add_suffix <tag suffix (Optional)>
@@ -109,7 +119,7 @@ This plugin uses ruby-kafka producer for writing data. For performance and relia
109
119
 
110
120
  # ruby-kafka producer options
111
121
  max_send_retries (integer) :default => 1
112
- required_acks (integer) :default => 0
122
+ required_acks (integer) :default => -1
113
123
  ack_timeout (integer) :default => nil (Use default of ruby-kafka)
114
124
  compression_codec (gzip|snappy) :default => nil
115
125
  </match>
@@ -117,7 +127,7 @@ This plugin uses ruby-kafka producer for writing data. For performance and relia
117
127
  Supports following ruby-kafka::Producer options.
118
128
 
119
129
  - max_send_retries - default: 1 - Number of times to retry sending of messages to a leader.
120
- - required_acks - default: 0 - The number of acks required per request.
130
+ - required_acks - default: -1 - The number of acks required per request.
121
131
  - ack_timeout - default: nil - How long the producer waits for acks. The unit is seconds.
122
132
  - compression_codec - default: nil - The codec the producer uses to compress messages.
123
133
 
@@ -130,15 +140,15 @@ Install snappy module before you use snappy compression.
130
140
 
131
141
  #### Load balancing
132
142
 
133
- Messages will be sent broker in a round-robin manner as default by Poseidon, but you can set `default_partition_key` in config file to route messages to a specific broker.
143
+ Messages will be assigned a partition at random as default by ruby-kafka, but messages with the same partition key will always be assigned to the same partition by setting `default_partition_key` in config file.
134
144
  If key name `partition_key` exists in a message, this plugin set its value of partition_key as key.
135
145
 
136
146
  |default_partition_key|partition_key| behavior |
137
147
  | --- | --- | --- |
138
- |Not set|Not exists| All messages are sent in round-robin |
139
- |Set| Not exists| All messages are sent to specific broker |
140
- |Not set| Exists | Messages which have partition_key record are sent to specific broker, others are sent in round-robin|
141
- |Set| Exists | Messages which have partition_key record are sent to specific broker with parition_key, others are sent to specific broker with default_parition_key|
148
+ |Not set|Not exists| All messages are assigned a partition at random |
149
+ |Set| Not exists| All messages are assigned to the specific partition |
150
+ |Not set| Exists | Messages which have partition_key record are assigned to the specific partition, others are assigned a partition at random |
151
+ |Set| Exists | Messages which have partition_key record are assigned to the specific partition with parition_key, others are assigned to the specific partition with default_parition_key |
142
152
 
143
153
 
144
154
  ### Buffered output plugin
@@ -163,7 +173,7 @@ This plugin uses ruby-kafka producer for writing data. This plugin works with re
163
173
 
164
174
  # ruby-kafka producer options
165
175
  max_send_retries (integer) :default => 1
166
- required_acks (integer) :default => 0
176
+ required_acks (integer) :default => -1
167
177
  ack_timeout (integer) :default => nil (Use default of ruby-kafka)
168
178
  compression_codec (gzip|snappy) :default => nil (No compression)
169
179
  </match>
@@ -171,7 +181,7 @@ This plugin uses ruby-kafka producer for writing data. This plugin works with re
171
181
  Supports following ruby-kafka's producer options.
172
182
 
173
183
  - max_send_retries - default: 1 - Number of times to retry sending of messages to a leader.
174
- - required_acks - default: 0 - The number of acks required per request.
184
+ - required_acks - default: -1 - The number of acks required per request.
175
185
  - ack_timeout - default: nil - How long the producer waits for acks. The unit is seconds.
176
186
  - compression_codec - default: nil - The codec the producer uses to compress messages.
177
187
 
@@ -12,7 +12,9 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "fluent-plugin-kafka"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = '0.3.0'
15
+ gem.version = '0.3.1'
16
+ gem.required_ruby_version = ">= 2.1.0"
17
+
16
18
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
17
19
  gem.add_dependency 'ltsv'
18
20
  gem.add_dependency 'zookeeper'
@@ -26,7 +26,7 @@ DESC
26
26
  # ruby-kafka producer options
27
27
  config_param :max_send_retries, :integer, :default => 1,
28
28
  :desc => "Number of times to retry sending of messages to a leader."
29
- config_param :required_acks, :integer, :default => 0,
29
+ config_param :required_acks, :integer, :default => -1,
30
30
  :desc => "The number of acks required per request."
31
31
  config_param :ack_timeout, :integer, :default => nil,
32
32
  :desc => "How long the producer waits for acks."
@@ -33,7 +33,7 @@ DESC
33
33
  # ruby-kafka producer options
34
34
  config_param :max_send_retries, :integer, :default => 1,
35
35
  :desc => "Number of times to retry sending of messages to a leader."
36
- config_param :required_acks, :integer, :default => 0,
36
+ config_param :required_acks, :integer, :default => -1,
37
37
  :desc => "The number of acks required per request."
38
38
  config_param :ack_timeout, :time, :default => nil,
39
39
  :desc => "How long the producer waits for acks."
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.3.0
4
+ version: 0.3.1
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: 2016-08-24 00:00:00.000000000 Z
12
+ date: 2016-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -135,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 2.1.0
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - ">="