Skip to content

Commit

Permalink
Create zero row files without overwrite flag
Browse files Browse the repository at this point in the history
  • Loading branch information
arhimondr committed Dec 11, 2019
1 parent efb0c6b commit 77eb6e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private byte[] generateZeroRowFile(

private void createFile(HdfsContext hdfsContext, Path path, byte[] content)
{
try (OutputStream outputStream = hdfsEnvironment.getFileSystem(hdfsContext, path).create(path)) {
try (OutputStream outputStream = hdfsEnvironment.getFileSystem(hdfsContext, path).create(path, false)) {
outputStream.write(content);
}
catch (IOException e) {
Expand Down

0 comments on commit 77eb6e0

Please sign in to comment.