webhdfs 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/webhdfs/client_v1.rb +10 -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: 683a33677fdfcccdf3bcd483c761e419b569e666
|
4
|
+
data.tar.gz: c759040209eb4ad21af23516737f5844140abed7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25d7628a72dac4ab37ada639fd63930f094e3b672367f4db3c8f2fb669f97a642a0f1cbfea2de9fcd88c752d502d2287f312632125982d5cf8d7497e19d2d10d
|
7
|
+
data.tar.gz: 4879bd5fa710df17d53ab80c99703c57df6863b15cabafdc704368a47146345abf6ad66ae54fd9dbf6a50d07f3e7a25cbc4ee9ce8a2d1c026a52120645bc0654
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.3
|
data/lib/webhdfs/client_v1.rb
CHANGED
@@ -330,9 +330,17 @@ module WebHDFS
|
|
330
330
|
|
331
331
|
req.body_stream = payload
|
332
332
|
req.content_length = payload.size
|
333
|
-
|
333
|
+
begin
|
334
|
+
res = conn.request(req)
|
335
|
+
rescue => e
|
336
|
+
raise WebHDFS::ServerError, "Failed to connect to host #{host}:#{port}, #{e.message}"
|
337
|
+
end
|
334
338
|
else
|
335
|
-
|
339
|
+
begin
|
340
|
+
res = conn.send_request(method, request_path, payload, header)
|
341
|
+
rescue => e
|
342
|
+
raise WebHDFS::ServerError, "Failed to connect to host #{host}:#{port}, #{e.message}"
|
343
|
+
end
|
336
344
|
end
|
337
345
|
|
338
346
|
if @kerberos and res.code == '307'
|
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.3
|
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-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|