From dabb33e018748d70fe3f7eb20cc3c00978173cb4 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Fri, 30 Oct 2020 17:52:22 +0100 Subject: [PATCH] changed the discriminant for which split the file --- .../src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java index f64c38489e..5366b1f150 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java @@ -84,7 +84,7 @@ public class MakeTar implements Serializable { final long numberOfSplits = sourceSize / bytesPerSplit; - if (numberOfSplits <= 1) { + if (numberOfSplits < 2) { write(fileSystem, inputPath, outputPath + ".tar", dir_name); } else { int partNum = 0;