fluent-plugin-webhdfs 1.2.0 → 1.2.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: a68b2c521a6b09397a3ec62b31a839a746b968d6
4
- data.tar.gz: d41eda6c2024f91215d13af9a3bfe606c3f5a984
3
+ metadata.gz: 6289f2441877bae9eee9aa392bcb9953518e0648
4
+ data.tar.gz: 6ba27fa2dda31b18234ce9658a2b19cce1dbd3ff
5
5
  SHA512:
6
- metadata.gz: 0d90a9def013f28eaf3e710aa039b2a40f7ac79215ee8c3b0bf88936f53b4a27fe12c6681ad89da2cd2be8a14026f4194022aa2f9ee860b658f26b38e4ca03ad
7
- data.tar.gz: ee3ee7ff6c0524e1b5b14fd5bd168d44094cfd84e36f9d872f3ad28f3f5dfc6e4bd76b14c4ba60bd472bd40f34b2f63bcd9f53c4c62a2290e204402e8bfcb444
6
+ metadata.gz: bb586a6832defd2f355f61fb0886b077877cd11926b875d45065bae7ad84128510782cc509c7b07b999a8409b23aeebb4e3fcebc816fc1b040c863ce76378e54
7
+ data.tar.gz: 6ed07a2cad48bb9e58c1b4a9c1e8ecb8aabed2d19bedb4c5965ae45da794514c3b2b4ce5bcc248be3597b2745df871a6050af87b82e51c1c15af97b27d100738
data/README.md CHANGED
@@ -143,8 +143,11 @@ With kerberos authentication:
143
143
  port 50070
144
144
  path /path/on/hdfs/access.log.%Y%m%d_%H.log
145
145
  kerberos true
146
+ kerberos_keytab /path/to/keytab # if needed
146
147
  </match>
147
148
 
149
+ NOTE: You need to install `gssapi` gem for kerberos. See https://github.com/kzk/webhdfs#for-kerberos-authentication
150
+
148
151
  If you want to compress data before storing it:
149
152
 
150
153
  <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 = "1.2.0"
5
+ gem.version = "1.2.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}
@@ -64,6 +64,8 @@ class Fluent::Plugin::WebHDFSOutput < Fluent::Plugin::Output
64
64
 
65
65
  desc 'Use kerberos authentication or not'
66
66
  config_param :kerberos, :bool, default: false
67
+ desc 'kerberos keytab file'
68
+ config_param :kerberos_keytab, :string, default: nil
67
69
 
68
70
  SUPPORTED_COMPRESS = [:gzip, :bzip2, :snappy, :lzo_command, :text]
69
71
  desc "Compress method (#{SUPPORTED_COMPRESS.join(',')})"
@@ -208,6 +210,7 @@ class Fluent::Plugin::WebHDFSOutput < Fluent::Plugin::Output
208
210
  end
209
211
  if @kerberos
210
212
  client.kerberos = true
213
+ client.kerberos_keytab = @kerberos_keytab if @kerberos_keytab
211
214
  end
212
215
 
213
216
  client
@@ -89,7 +89,8 @@ class WebHDFSOutputTest < Test::Unit::TestCase
89
89
  "ssl" => true,
90
90
  "ssl_ca_file" => "/path/to/ca_file.pem",
91
91
  "ssl_verify_mode" => "peer",
92
- "kerberos" => true
92
+ "kerberos" => true,
93
+ "kerberos_keytab" => "/path/to/kerberos.keytab"
93
94
  })
94
95
  d = create_driver(conf)
95
96
 
@@ -100,6 +101,7 @@ class WebHDFSOutputTest < Test::Unit::TestCase
100
101
  assert_equal '/path/to/ca_file.pem', d.instance.ssl_ca_file
101
102
  assert_equal :peer, d.instance.ssl_verify_mode
102
103
  assert_equal true, d.instance.kerberos
104
+ assert_equal '/path/to/kerberos.keytab', d.instance.kerberos_keytab
103
105
  end
104
106
 
105
107
  data(gzip: [:gzip, Fluent::Plugin::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: 1.2.0
4
+ version: 1.2.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