webhdfs 0.10.1 → 0.10.2

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 +3 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 202827bff28692693795a0b47541acfa5198fdc375401cdcdae0509ac1b01440
4
- data.tar.gz: 5b23890cae46ba9363aa3facedd60c083e0bfaf74ba59aae233c866a949ba8bf
3
+ metadata.gz: 7f1fb40375edf3e4364001418a1c4bf364520c586fe4ba9cda1276e76da60137
4
+ data.tar.gz: eaa642e3f5b85c0d347f7691a88cdd48d441c5bbf8271b599fb246b4ff7e8b63
5
5
  SHA512:
6
- metadata.gz: 85dc05b030202720b9baf7d4f60232232ff121fff4e7b49a4e6a9fd563df6ccb0293a52f793781aa2d48b2ecd9516e8851eca1b316d002af2dc5d6734dd8a977
7
- data.tar.gz: edef2f1401b86df2b57fc253e9418837a331df79c4a5c388f41e5d88755c1a9944689107faaaee65849a6a7c481d0cd9c9df3b4f14b65598ec54f8daa7ef0f49
6
+ metadata.gz: be479f32138f814ff961ce820d9b0af8c4d7ddf4a5a55c6e2aec6b9e093f654f6931ea53f19554a454372f51d5f6d47fbb80264255f1e5393fdc9102dbcdee65
7
+ data.tar.gz: b9081147028452f2e6dd46f14e7337a23fcb8067b8c7b8b7e5aefa79eef861b752c2448feeec9d2524c5ded2739fa807986f69f0e0c0ea8a046a3c5eed314127
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.1
1
+ 0.10.2
@@ -428,11 +428,11 @@ module WebHDFS
428
428
  'Response body is empty...'
429
429
  end
430
430
 
431
- # when delegation token is expired
432
- if res.code == '403' and @renew_kerberos_delegation_token_time_hour
431
+ # when delegation token is invalid
432
+ if res.code == '403' and @renew_kerberos_delegation_token_time_hour && retries < @retry_times
433
433
  if message.include?('{"RemoteException":{')
434
434
  detail = JSON.parse(message) rescue nil
435
- if detail&.dig('RemoteException', 'exception') == 'InvalidToken' and detail&.dig('RemoteException', 'message')&.include?('HDFS_DELEGATION_TOKEN')
435
+ if detail&.dig('RemoteException', 'message')&.include?('HDFS_DELEGATION_TOKEN')
436
436
  params = params.merge('token' => get_cached_kerberos_delegation_token(true))
437
437
  sleep @retry_interval if @retry_interval > 0
438
438
  return request(host, port, method, path, op, params, payload, header, retries+1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webhdfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Ohta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-12 00:00:00.000000000 Z
12
+ date: 2021-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.2.3
125
+ rubygems_version: 3.3.0.dev
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Ruby WebHDFS/HttpFs client