YARN-11369. Commons.compress throws an IllegalArgumentException with large uids after 1.21. Contributed by Benjamin Teke
This commit is contained in:
parent
cd929457c9
commit
142df247ed
|
@ -331,6 +331,8 @@ public class FrameworkUploader implements Runnable {
|
|||
LOG.info("Compressing tarball");
|
||||
try (TarArchiveOutputStream out = new TarArchiveOutputStream(
|
||||
targetStream)) {
|
||||
// Workaround for the compress issue present from 1.21: COMPRESS-587
|
||||
out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_STAR);
|
||||
for (String fullPath : filteredInputFiles) {
|
||||
LOG.info("Adding " + fullPath);
|
||||
File file = new File(fullPath);
|
||||
|
|
Loading…
Reference in New Issue