fluent-plugin-scribe 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/VERSION +1 -1
- data/bin/fluent-scribe-remote +1 -1
- data/lib/fluent/plugin/in_scribe.rb +17 -4
- metadata +6 -6
data/README.rdoc
CHANGED
@@ -44,6 +44,10 @@ Install this plugin with fluent, and add the following configuration to fluent.c
|
|
44
44
|
|
45
45
|
You can modify port, and the corresponding tag.
|
46
46
|
|
47
|
+
== Contributors
|
48
|
+
|
49
|
+
* {Satoshi Tagomori}[https://github.com/tagomoris]
|
50
|
+
|
47
51
|
== Copyright
|
48
52
|
|
49
53
|
Copyright:: Copyright (c) 2011 Treasure Data, Inc.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.9
|
data/bin/fluent-scribe-remote
CHANGED
@@ -13,7 +13,7 @@ port = 1463
|
|
13
13
|
|
14
14
|
socket = Thrift::Socket.new host, port.to_i
|
15
15
|
transport = Thrift::FramedTransport.new socket
|
16
|
-
protocol = Thrift::BinaryProtocol.new transport
|
16
|
+
protocol = Thrift::BinaryProtocol.new transport, false, false
|
17
17
|
client = Scribe::Client.new protocol
|
18
18
|
transport.open
|
19
19
|
|
@@ -67,15 +67,28 @@ class ScribeInput < Input
|
|
67
67
|
transport_factory = Thrift::BufferedTransportFactory.new
|
68
68
|
end
|
69
69
|
|
70
|
+
# 2011/09/29 Kazuki Ohta <kazuki.ohta@gmail.com>
|
71
|
+
# This section is a workaround to set strict_read and strict_write option.
|
72
|
+
# Ruby-Thrift 0.7 set them both 'true' in default, but Scribe protocol set
|
73
|
+
# them both 'false'.
|
74
|
+
protocol_factory = Thrift::BinaryProtocolFactory.new
|
75
|
+
protocol_factory.instance_eval {|obj|
|
76
|
+
def get_protocol(trans) # override
|
77
|
+
return Thrift::BinaryProtocol.new(trans,
|
78
|
+
strict_read=false,
|
79
|
+
strict_write=false)
|
80
|
+
end
|
81
|
+
}
|
82
|
+
|
70
83
|
case @server_type
|
71
84
|
when 'simple'
|
72
|
-
@server = Thrift::SimpleServer.new processor, @transport, transport_factory
|
85
|
+
@server = Thrift::SimpleServer.new processor, @transport, transport_factory, protocol_factory
|
73
86
|
when 'threaded'
|
74
|
-
@server = Thrift::ThreadedServer.new processor, @transport, transport_factory
|
87
|
+
@server = Thrift::ThreadedServer.new processor, @transport, transport_factory, protocol_factory
|
75
88
|
when 'thread_pool'
|
76
|
-
@server = Thrift::ThreadPoolServer.new processor, @transport, transport_factory
|
89
|
+
@server = Thrift::ThreadPoolServer.new processor, @transport, transport_factory, protocol_factory
|
77
90
|
when 'nonblocking'
|
78
|
-
@server = Thrift::NonblockingServer.new processor, @transport, transport_factory
|
91
|
+
@server = Thrift::NonblockingServer.new processor, @transport, transport_factory, protocol_factory
|
79
92
|
else
|
80
93
|
raise ConfigError, "in_scribe: unsupported server_type '#{@server_type}'"
|
81
94
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-scribe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-29 00:00:00.000000000 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluent
|
17
|
-
requirement: &
|
17
|
+
requirement: &2153978940 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 0.9.7
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2153978940
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: thrift
|
28
|
-
requirement: &
|
28
|
+
requirement: &2153978340 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 0.7.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2153978340
|
37
37
|
description:
|
38
38
|
email:
|
39
39
|
executables: []
|