embulk-input-hdfs 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 304cdee9ca1c60697b3796bd4aab6a406da8aa1d
4
- data.tar.gz: faa5cc173f74d4cdf5cafbc52d3fbeb77b1eface
3
+ metadata.gz: 4e125254c0d5e9b6837c42a6dc3a6701c8897395
4
+ data.tar.gz: 1b2c5aba3844aabd1e7d7eb1af7a177eb9ea8ae0
5
5
  SHA512:
6
- metadata.gz: 868a12f39f550effcef880beec037d063c844459ae515bae0efd711d8ac9be1d103648679cfc5de49f53a0f68b0be16b60c8b979710384c0e59bdbe265b85f51
7
- data.tar.gz: 63fa4e4e7cbde6297f652fbd87776e9d1153cc35a2329b255fd9003b66603ec8b1daaf7b416637e2d035332d10e7282a42a52d9c845c3f828fe9c701e6d32e72
6
+ metadata.gz: 70d2eb9a08bcd17da14a3c4815d2cb88ab6941cd33d7a08d913e1006349d4690a28a3994797120edec3aab7c9a6978aaf4368419cae674b5fce65b5c33b0039c
7
+ data.tar.gz: 65a03af4289551d279a60b028b77602d606c6a7816ec328fd910c5f6d0a171833260675350766e9f22f5426781a9a9cd0cf6e275780ba43a57c8b7ae105786bf
@@ -12,7 +12,7 @@ configurations {
12
12
  provided
13
13
  }
14
14
 
15
- version = "0.1.6"
15
+ version = "0.1.7"
16
16
 
17
17
  sourceCompatibility = 1.7
18
18
  targetCompatibility = 1.7
@@ -24,6 +24,7 @@ import org.jruby.embed.ScriptingContainer;
24
24
  import org.slf4j.Logger;
25
25
 
26
26
  import javax.annotation.Nullable;
27
+ import java.io.File;
27
28
  import java.io.IOException;
28
29
  import java.io.InputStream;
29
30
  import java.util.ArrayList;
@@ -171,10 +172,10 @@ public class HdfsFileInputPlugin implements FileInputPlugin
171
172
  {
172
173
  Configuration configuration = new Configuration();
173
174
 
174
- for (Object configFile : task.getConfigFiles()) {
175
- configuration.addResource(configFile.toString());
175
+ for (String configFile : task.getConfigFiles()) {
176
+ File file = new File(configFile);
177
+ configuration.addResource(file.toURI().toURL());
176
178
  }
177
- configuration.reloadConfiguration();
178
179
 
179
180
  for (Map.Entry<String, String> entry: task.getConfig().entrySet()) {
180
181
  configuration.set(entry.getKey(), entry.getValue());
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.6
4
+ version: 0.1.7
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-11-17 00:00:00.000000000 Z
11
+ date: 2015-12-01 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.6.jar
85
+ - classpath/embulk-input-hdfs-0.1.7.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