fluent-plugin-norikra 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fluent-plugin-norikra.gemspec +1 -1
- data/lib/fluent/plugin/out_norikra.rb +12 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 438de874a5cf49d1dfeb86c755b5bb7d69ab9715
|
4
|
+
data.tar.gz: 9aff77e6751e8e4757954ce2ae262f263abc136d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b19b1cd4f3e2a1b49ff8e6723e5aea17b7e3cd64bd3e96225d0ad55c935cfd34870ff0ca6f7df646ac87fb982dccacd19beb2eea38f823da4cb1a280dfb2dd6
|
7
|
+
data.tar.gz: 9774924e5b9aa84e692776ec249e3cac2363a8a21b5541b1cb9cdd88d7994a0a4e9987a1d1920618f796942ac5139bb4b507286c9c75e8421afc7fbdd6d69f46
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "fluent-plugin-norikra"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.3"
|
6
6
|
spec.authors = ["TAGOMORI Satoshi"]
|
7
7
|
spec.email = ["tagomoris@gmail.com"]
|
8
8
|
spec.description = %q{process events on fluentd with SQL like query, with built-in Norikra server if needed.}
|
@@ -71,7 +71,7 @@ module Fluent
|
|
71
71
|
c = ConfigSection.new(element)
|
72
72
|
@config_targets[c.target] = c
|
73
73
|
when 'server'
|
74
|
-
@execute_server =
|
74
|
+
@execute_server = true
|
75
75
|
@execute_jruby_path = element['jruby']
|
76
76
|
@execute_server_path = element['path']
|
77
77
|
@execute_server_opts = element['opts']
|
@@ -170,13 +170,19 @@ module Fluent
|
|
170
170
|
|
171
171
|
def server_starter
|
172
172
|
$log.info "starting Norikra server process #{@host}:#{@port}"
|
173
|
-
|
174
|
-
if @
|
175
|
-
|
176
|
-
|
173
|
+
base_options = [@execute_server_path, 'start', '-H', @host, '-P', @port.to_s]
|
174
|
+
cmd,options = if @execute_jruby_path
|
175
|
+
args = [@execute_server_path, 'start', '-H', @host, '-P', @port.to_s]
|
176
|
+
if @execute_server_opts
|
177
|
+
args.unshift(*@execute_server_opts.split(/ +/).map{|opt| '-J' + opt})
|
178
|
+
end
|
179
|
+
[@execute_jruby_path, args]
|
180
|
+
else
|
181
|
+
[@execute_server_path, ['start', '-H', @host, '-P', @port.to_s]]
|
182
|
+
end
|
177
183
|
@norikra_pid = fork do
|
178
184
|
ENV.keys.select{|k| k =~ /^(RUBY|GEM|BUNDLE|RBENV|RVM|rvm)/}.each {|k| ENV.delete(k)}
|
179
|
-
exec([
|
185
|
+
exec([cmd, 'norikra(fluentd)'], *options)
|
180
186
|
end
|
181
187
|
connecting = true
|
182
188
|
$log.info "trying to confirm norikra server status..."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-norikra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: norikra-client
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.0.
|
114
|
+
rubygems_version: 2.0.2
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Fluentd plugin to do CEP with norikra
|