forked from D-Net/dnet-hadoop
changed the discriminant for which split the file
This commit is contained in:
parent
0fba08eae4
commit
dabb33e018
|
@ -84,7 +84,7 @@ public class MakeTar implements Serializable {
|
||||||
|
|
||||||
final long numberOfSplits = sourceSize / bytesPerSplit;
|
final long numberOfSplits = sourceSize / bytesPerSplit;
|
||||||
|
|
||||||
if (numberOfSplits <= 1) {
|
if (numberOfSplits < 2) {
|
||||||
write(fileSystem, inputPath, outputPath + ".tar", dir_name);
|
write(fileSystem, inputPath, outputPath + ".tar", dir_name);
|
||||||
} else {
|
} else {
|
||||||
int partNum = 0;
|
int partNum = 0;
|
||||||
|
|
Loading…
Reference in New Issue