Skip to content
Snippets Groups Projects
Commit 40d193a0 authored by František Dvořák's avatar František Dvořák
Browse files

Fix archiving of the big files - posix mode

parent 7fd55ca0
No related branches found
No related tags found
No related merge requests found
Pipeline #772 passed
......@@ -264,6 +264,7 @@ public class HadoopTar extends Configured implements Tool {
TarOutputStream tos = new TarOutputStream(os);
// GNU tar extensions are used to store long file names in the archive.
try {
tos.setBigNumberMode(TarOutputStream.BIGNUMBER_POSIX);
tos.setLongFileMode(TarOutputStream.LONGFILE_GNU);
for (Path path : getTopSrcPaths(curDirPath, args, keepAbsolutePath ) ) {
archive(tos, curDirPath, path, keepAbsolutePath, optionVerbose );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment