embulk-output-hdfs 0.2.0 → 0.2.1

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: e23e49bd7a7a7cb1587c929faf9979fe3ae5cf94
4
- data.tar.gz: 13833b306d2d69da411177c6f4a094955b572f79
3
+ metadata.gz: a0be14cc220ab2713561b0ff9c009a76bbd4c234
4
+ data.tar.gz: d13c4ba40410f7857b396a7ca031267fad887e40
5
5
  SHA512:
6
- metadata.gz: 6ac5ec5966dd880ed625d85afdaa8bd587dcf03aadfa4c2464f5bb78034dea247d263197ced5a1130d3d394a801dd9ea3d5a91180973cc4ced4dd43c332c1a10
7
- data.tar.gz: 82f2d8d22029f356925e7412d9a891317d5b6c4fa667787ce2df46fd7195db4aaf813410c705e590ba21958fcb9242a81ca6b4e04d2a4904c4770eacf23f95eb
6
+ metadata.gz: 3acc7fda130ce48a3c9fe5c9cacb7acf3ec2146eb691fc1c1a3e9842fed47daf30706a73ffb7448efef6b12cd7af5e96dd5248f1848c55eb2f4754cfbd5f3600
7
+ data.tar.gz: 159d104c53c39933e2c77730ceb9413c3d040cb610ae7ca91d09d1818264acc2ab3e5fd78bfdeafec8f860aee6f83d7f68d95d2be74f77608e8210350981d4f0
@@ -12,7 +12,7 @@ configurations {
12
12
  provided
13
13
  }
14
14
 
15
- version = "0.2.0"
15
+ version = "0.2.1"
16
16
 
17
17
  sourceCompatibility = 1.7
18
18
  targetCompatibility = 1.7
@@ -1,5 +1,6 @@
1
1
  package org.embulk.output.hdfs;
2
2
 
3
+ import java.io.File;
3
4
  import java.io.IOException;
4
5
  import java.io.OutputStream;
5
6
  import java.util.ArrayList;
@@ -176,10 +177,10 @@ public class HdfsFileOutputPlugin
176
177
  {
177
178
  Configuration configuration = new Configuration();
178
179
 
179
- for (Object configFile : task.getConfigFiles()) {
180
- configuration.addResource(configFile.toString());
180
+ for (String configFile : task.getConfigFiles()) {
181
+ File file = new File(configFile);
182
+ configuration.addResource(file.toURI().toURL());
181
183
  }
182
- configuration.reloadConfiguration();
183
184
 
184
185
  for (Map.Entry<String, String> entry: task.getConfig().entrySet()) {
185
186
  configuration.set(entry.getKey(), entry.getValue());
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-hdfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Civitaspo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-20 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
@@ -79,7 +79,7 @@ files:
79
79
  - classpath/curator-client-2.6.0.jar
80
80
  - classpath/curator-framework-2.6.0.jar
81
81
  - classpath/curator-recipes-2.6.0.jar
82
- - classpath/embulk-output-hdfs-0.2.0.jar
82
+ - classpath/embulk-output-hdfs-0.2.1.jar
83
83
  - classpath/gson-2.2.4.jar
84
84
  - classpath/hadoop-annotations-2.6.0.jar
85
85
  - classpath/hadoop-auth-2.6.0.jar