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 +4 -4
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/webhdfs/client_v1.rb +3 -2
- 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: fe61592c6a1b28d0497ea08996b040ba33719e6e
|
4
|
+
data.tar.gz: 1135cf158e61e2573d2826b8f829a92c3959c02c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c759c0cc5a166062c0f5bc07493c1142f08e4cfa16a083513738c423149dd534bb52ec96deb9175c2939bf9589c4d0f4a3c9ca14001e2baa805cf530b905fa
|
7
|
+
data.tar.gz: 2e3b950209b09c194a7ba11ca5158c63f9e5400c92af06bdf197bba38a36c1f3851f4e1667a0e424f959eea75bc8b7fa156fafd24ab1e43ed289ed7319cfdd1b
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
data/lib/webhdfs/client_v1.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|