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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb29d1ac399ef06c7e0379b5fff8f16570b12cf2
4
- data.tar.gz: f5d5410caf009ea3e45e2a90ce947f4986b9a7a3
3
+ metadata.gz: a090b029f8d2a4b177bb42ae8b496c35135c759d
4
+ data.tar.gz: 679a0a2dead29bd353ff1b3dd34585ca82ca7a52
5
5
  SHA512:
6
- metadata.gz: 96e10fd703c3296f63f2f3fe4b3d8bdd7169ab06a4a72bf8be916cda364c522d1b3db79cfa8db3dd7b07a20cd793f21cae252a2736e5990caf8ba1e731a520e2
7
- data.tar.gz: 86700f3aad0d37a6292586fee6e7a5084099393b1c05976403ff97e29e30f5b4c0bbcf225c8666341f6e10320009d9966c0e7cc456c3f12d3c899340ac673a85
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.0"
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.0
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-05-19 00:00:00.000000000 Z
11
+ date: 2017-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake