fluent-plugin-webhdfs 0.7.0 → 0.7.1
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/README.md +3 -0
- data/fluent-plugin-webhdfs.gemspec +1 -1
- data/lib/fluent/plugin/out_webhdfs.rb +3 -0
- data/test/plugin/test_out_webhdfs.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a090b029f8d2a4b177bb42ae8b496c35135c759d
|
|
4
|
+
data.tar.gz: 679a0a2dead29bd353ff1b3dd34585ca82ca7a52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3304414c60a15aca45e1cb37ba5dfb367a68dc008f2e21e5c9fc52f44ee28ddd62d120cd000f91ea3ac599188120ce6d9ad3c997ad90c7425f28a75d0688fa7
|
|
7
|
+
data.tar.gz: c4afeda42653ea5b65a9c14838cbffc248e9a2d9cd8c18721ba11a0dc83df5443d309cc72b015f20d5e6ced1b21cd0125832ebc0b73701f31d66430876367e4d
|
data/README.md
CHANGED
|
@@ -118,8 +118,11 @@ With kerberos authentication:
|
|
|
118
118
|
port 50070
|
|
119
119
|
path /path/on/hdfs/access.log.%Y%m%d_%H.log
|
|
120
120
|
kerberos true
|
|
121
|
+
kerberos_keytab /path/to/keytab # if needed
|
|
121
122
|
</match>
|
|
122
123
|
|
|
124
|
+
NOTE: You need to install `gssapi` gem for kerberos. See https://github.com/kzk/webhdfs#for-kerberos-authentication
|
|
125
|
+
|
|
123
126
|
If you want to compress data before storing it:
|
|
124
127
|
|
|
125
128
|
<match access.**>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = "fluent-plugin-webhdfs"
|
|
5
|
-
gem.version = "0.7.
|
|
5
|
+
gem.version = "0.7.1"
|
|
6
6
|
gem.authors = ["TAGOMORI Satoshi"]
|
|
7
7
|
gem.email = ["tagomoris@gmail.com"]
|
|
8
8
|
gem.summary = %q{Fluentd plugin to write data on HDFS over WebHDFS, with flexible formatting}
|
|
@@ -81,6 +81,8 @@ class Fluent::WebHDFSOutput < Fluent::TimeSlicedOutput
|
|
|
81
81
|
|
|
82
82
|
desc 'Use kerberos authentication or not'
|
|
83
83
|
config_param :kerberos, :bool, :default => false
|
|
84
|
+
desc 'kerberos keytab file'
|
|
85
|
+
config_param :kerberos_keytab, :string, :default => nil
|
|
84
86
|
|
|
85
87
|
SUPPORTED_COMPRESS = ['gzip', 'bzip2', 'snappy', 'lzo_command', 'text']
|
|
86
88
|
desc "Compress method (#{SUPPORTED_COMPRESS.join(',')})"
|
|
@@ -202,6 +204,7 @@ class Fluent::WebHDFSOutput < Fluent::TimeSlicedOutput
|
|
|
202
204
|
end
|
|
203
205
|
if @kerberos
|
|
204
206
|
client.kerberos = true
|
|
207
|
+
client.kerberos_keytab = @kerberos_keytab if @kerberos_keytab
|
|
205
208
|
end
|
|
206
209
|
|
|
207
210
|
client
|
|
@@ -56,7 +56,9 @@ ssl true
|
|
|
56
56
|
ssl_ca_file /path/to/ca_file.pem
|
|
57
57
|
ssl_verify_mode peer
|
|
58
58
|
kerberos true
|
|
59
|
+
kerberos_keytab /path/to/kerberos.keytab
|
|
59
60
|
]
|
|
61
|
+
|
|
60
62
|
assert_equal 'server.local', d.instance.instance_eval{ @namenode_host }
|
|
61
63
|
assert_equal 14000, d.instance.instance_eval{ @namenode_port }
|
|
62
64
|
assert_equal '/hdfs/path/file.%Y%m%d.%H%M.log', d.instance.path
|
|
@@ -65,6 +67,7 @@ kerberos true
|
|
|
65
67
|
assert_equal '/path/to/ca_file.pem', d.instance.ssl_ca_file
|
|
66
68
|
assert_equal :peer, d.instance.ssl_verify_mode
|
|
67
69
|
assert_equal true, d.instance.kerberos
|
|
70
|
+
assert_equal '/path/to/kerberos.keytab', d.instance.kerberos_keytab
|
|
68
71
|
end
|
|
69
72
|
|
|
70
73
|
data(gzip: ['gzip', Fluent::WebHDFSOutput::GzipCompressor],
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-webhdfs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TAGOMORI Satoshi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|