File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/java/org/embulk/output/hdfs Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change 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 @@ private static FileSystem getFs(final PluginTask task)
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 ());
You can’t perform that action at this time.
0 commit comments