webhdfs 0.7.0 → 0.7.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: 4f02131841ca6641fc326c7eb7edcc2597da3295
4
- data.tar.gz: 39661fdfa5e70bd7ef8019df212ab77ebd76653f
3
+ metadata.gz: fe61592c6a1b28d0497ea08996b040ba33719e6e
4
+ data.tar.gz: 1135cf158e61e2573d2826b8f829a92c3959c02c
5
5
  SHA512:
6
- metadata.gz: 12bf9eef8c161e36f25181cfbd4de13c1a7e07ea6ae6f5a7f30d9878019fa06d558e79f765007b0c306e0336550235703bba51e258082ba83276d946fa289fe4
7
- data.tar.gz: 4af18a7733419ad404b4f498d440db2dc98cd73097723b38dd71f5424947a35902e262600e49722a02bab17bde926358c8910bf1845a15b6f9023c4f48188315
6
+ metadata.gz: 10c759c0cc5a166062c0f5bc07493c1142f08e4cfa16a083513738c423149dd534bb52ec96deb9175c2939bf9589c4d0f4a3c9ca14001e2baa805cf530b905fa
7
+ data.tar.gz: 2e3b950209b09c194a7ba11ca5158c63f9e5400c92af06bdf197bba38a36c1f3851f4e1667a0e424f959eea75bc8b7fa156fafd24ab1e43ed289ed7319cfdd1b
data/README.md CHANGED
@@ -102,6 +102,7 @@ Note that [gssapi](https://github.com/zenchild/gssapi) library must be available
102
102
 
103
103
  client = WebHDFS::Client.new('hostname', 14000)
104
104
  client.kerberos = true
105
+ client.kerberos_keytab = "/path/to/project.keytab"
105
106
 
106
107
  ## AUTHORS
107
108
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -23,7 +23,7 @@ module WebHDFS
23
23
  attr_accessor :ssl
24
24
  attr_accessor :ssl_ca_file
25
25
  attr_reader :ssl_verify_mode
26
- attr_accessor :kerberos
26
+ attr_accessor :kerberos, :kerberos_keytab
27
27
 
28
28
  SSL_VERIFY_MODES = [:none, :peer]
29
29
  def ssl_verify_mode=(mode)
@@ -51,6 +51,7 @@ module WebHDFS
51
51
  @ssl_verify_mode = nil
52
52
 
53
53
  @kerberos = false
54
+ @kerberos_keytab = nil
54
55
  end
55
56
 
56
57
  # curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=CREATE
@@ -303,7 +304,7 @@ module WebHDFS
303
304
  if @kerberos
304
305
  require 'base64'
305
306
  require 'gssapi'
306
- gsscli = GSSAPI::Simple.new(@host, 'HTTP')
307
+ gsscli = GSSAPI::Simple.new(@host, 'HTTP', @kerberos_keytab)
307
308
  token = nil
308
309
  begin
309
310
  token = gsscli.init_context
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 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
  - Kazuki Ohta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake