webhdfs 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/webhdfs/client_v1.rb +10 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0aaffe6666d27987225f7ad4fc5241e5738ad607
4
- data.tar.gz: cae048c194c8bf07c997b06568b094451e858d3c
3
+ metadata.gz: 683a33677fdfcccdf3bcd483c761e419b569e666
4
+ data.tar.gz: c759040209eb4ad21af23516737f5844140abed7
5
5
  SHA512:
6
- metadata.gz: b07e48879542583cee1174096dac9a23bf8898f467366fb4ffe56549a1e15e77cbadfa9b5492da2804680ee0b6afe9f1e64f8ec7b58d50f9a66b600e5cd34e6e
7
- data.tar.gz: f7b049e808de61113e534d9ffc77d98a9fd5aa4544c9bc42b12c69d9adca655f27a992b400d40dc2e70cfe5f1570d7396759a3f25e3c2c02d5cd9b1044fadae3
6
+ metadata.gz: 25d7628a72dac4ab37ada639fd63930f094e3b672367f4db3c8f2fb669f97a642a0f1cbfea2de9fcd88c752d502d2287f312632125982d5cf8d7497e19d2d10d
7
+ data.tar.gz: 4879bd5fa710df17d53ab80c99703c57df6863b15cabafdc704368a47146345abf6ad66ae54fd9dbf6a50d07f3e7a25cbc4ee9ce8a2d1c026a52120645bc0654
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
@@ -330,9 +330,17 @@ module WebHDFS
330
330
 
331
331
  req.body_stream = payload
332
332
  req.content_length = payload.size
333
- res = conn.request(req)
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
- res = conn.send_request(method, request_path, payload, header)
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.2
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-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake