embulk-input-hdfs 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa9425d56cb955c999bdfc8f307004f260065797
4
- data.tar.gz: d11249a30d11ad70595d5961383f39d626290f4e
3
+ metadata.gz: 115bf772d6e3eefcf1326451556c501a7efda067
4
+ data.tar.gz: ddcd9284f586d5ed27c586eece4132e9f781e045
5
5
  SHA512:
6
- metadata.gz: 46e6e225a7cc1acf6a1396ecdf72b8fcce1b0679196bfe1bfd18baec6015d602dbedbc22e3bda74f2ce916ddbce8043152ed5d93302850ca1a79cc54f07a1fb8
7
- data.tar.gz: e49523b895c4d11e10e25295f4298d5f8c2113c1d7eefc48e3a8862fadcea7eaa51c1e677b26e5d24459198da66b58668184d6c4b14f5b86878cba6dbc1384fa
6
+ metadata.gz: 8dd925dfb1b48497255fb5755f22e6ef439165bb3712186b12735743a307bef813b281f3d0d2e43ee038143e9d90249ae70876e6108e281dd012614fb5c97f5d
7
+ data.tar.gz: 88566caa1b5e3cfb10d243aaa9de123de43ca16cf3473e0c96bb75ebf8e357801a6bbe96a03bf64a5be4ab738b96b51acdc049a1dd59ff3571d2854872f26f6d
data/build.gradle CHANGED
@@ -12,7 +12,7 @@ configurations {
12
12
  provided
13
13
  }
14
14
 
15
- version = "0.1.4"
15
+ version = "0.1.5"
16
16
 
17
17
  sourceCompatibility = 1.7
18
18
  targetCompatibility = 1.7
@@ -197,7 +197,15 @@ public class HdfsFileInputPlugin implements FileInputPlugin
197
197
  List<String> fileList = new ArrayList<>();
198
198
  Path rootPath = new Path(pathString);
199
199
 
200
- for (FileStatus entry : fs.globStatus(rootPath)) {
200
+ final FileStatus[] entries = fs.globStatus(rootPath);
201
+ // `globStatus` does not throw PathNotFoundException.
202
+ // return null instead.
203
+ // see: https://github.com/apache/hadoop/blob/branch-2.7.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Globber.java#L286
204
+ if (entries == null) {
205
+ return fileList;
206
+ }
207
+
208
+ for (FileStatus entry : entries) {
201
209
  if (entry.isDirectory()) {
202
210
  fileList.addAll(lsr(fs, entry));
203
211
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-hdfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahiro.nakayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-22 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,7 +82,7 @@ files:
82
82
  - classpath/curator-client-2.6.0.jar
83
83
  - classpath/curator-framework-2.6.0.jar
84
84
  - classpath/curator-recipes-2.6.0.jar
85
- - classpath/embulk-input-hdfs-0.1.4.jar
85
+ - classpath/embulk-input-hdfs-0.1.5.jar
86
86
  - classpath/gson-2.2.4.jar
87
87
  - classpath/hadoop-annotations-2.6.0.jar
88
88
  - classpath/hadoop-auth-2.6.0.jar