Skip to content

Commit 2daa692

Browse files
author
takahiro.nakayama
committed
remove progresible
1 parent 58f4ade commit 2daa692

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/main/java/org/embulk/output/HdfsOutputPlugin.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
import org.apache.hadoop.conf.Configuration;
55
import org.apache.hadoop.fs.FileSystem;
66
import org.apache.hadoop.fs.Path;
7-
import org.apache.hadoop.util.Progressable;
87
import org.embulk.config.*;
9-
import org.embulk.spi.*;
8+
import org.embulk.spi.Buffer;
9+
import org.embulk.spi.Exec;
10+
import org.embulk.spi.FileOutputPlugin;
11+
import org.embulk.spi.TransactionalFileOutput;
1012
import org.jruby.embed.ScriptingContainer;
1113
import org.slf4j.Logger;
1214

@@ -30,7 +32,7 @@ public interface PluginTask extends Task
3032
public Map<String, String> getConfig();
3133

3234
@Config("sequence_format")
33-
@ConfigDefault("\".%03d.%02d\"")
35+
@ConfigDefault("\"%03d.%02d\"")
3436
public String getSequenceFormat();
3537

3638
@Config("output_path")
@@ -142,14 +144,7 @@ public void nextFile() {
142144
if (fs.exists(currentPath)) {
143145
throw new IllegalAccessException(currentPath.toString() + "already exists.");
144146
}
145-
currentStream = fs.create(
146-
currentPath,
147-
new Progressable() {
148-
@Override
149-
public void progress() {
150-
logger.info("{} byte written.", 1);
151-
}
152-
});
147+
currentStream = fs.create(currentPath);
153148
logger.info("Uploading '{}'", currentPath.toString());
154149
}
155150
catch (IOException | IllegalAccessException e) {

0 commit comments

Comments
 (0)