webhdfs 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/VERSION +1 -1
- data/lib/webhdfs/client_v1.rb +7 -0
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5c3c7efca2c4e4c3a82a12c544dc5d86790e9b19aa050f1269bfb17628be2bb8
|
4
|
+
data.tar.gz: 8d7dce607082bbe3c2eaaa17eb26d08158eb3844f1d938580727a9dd4be65729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b43c91f0fb8b1908813ef31b012083d3613bde72fa7a0228a9d4200f3a140df95c5658a2c2f1d2e9888eb888c8e44ef10018705167bbcbaf9963a17d505eb93c
|
7
|
+
data.tar.gz: 209843fe4e9afb954d9f0523a9c2117302d7fb1f2d3118589775b5b0ac4f0b8720b27d954924dfbb5b8d8b5dd521790fd3ef8f632556292eb4c465c8e4087edc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|
data/lib/webhdfs/client_v1.rb
CHANGED
@@ -164,6 +164,13 @@ module WebHDFS
|
|
164
164
|
end
|
165
165
|
alias :gethomedirectory :homedir
|
166
166
|
|
167
|
+
# curl -i "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETTRASHROOT"
|
168
|
+
def gettrashroot(options={})
|
169
|
+
check_options(options, OPT_TABLE['GETTRASHROOT'])
|
170
|
+
res = operate_requests('GET', '/', 'GETTRASHROOT', options)
|
171
|
+
check_success_json(res, 'Path')
|
172
|
+
end
|
173
|
+
|
167
174
|
# curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=SETPERMISSION
|
168
175
|
# [&permission=<OCTAL>]"
|
169
176
|
def chmod(path, mode, options={})
|
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.
|
4
|
+
version: 0.9.0
|
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:
|
12
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -121,12 +121,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
rubygems_version: 2.5.1
|
124
|
+
rubygems_version: 3.0.3
|
126
125
|
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: Ruby WebHDFS/HttpFs client
|
129
128
|
test_files:
|
130
129
|
- test/test_helper.rb
|
131
130
|
- test/webhdfs/fileutils.rb
|
132
|
-
has_rdoc: false
|