apache/seatunnel · warning

The file does not support this archive compress type: {}

Error message

The file does not support this archive compress type: {}

What it means

This warning is logged by AbstractReadStrategy.resolveArchiveCompressedInputStream when a source file's archive compress format has no case in the switch. The reader warns and proceeds to read the file as a plain (uncompressed) InputStream, so an actually compressed file will likely fail to parse downstream or yield corrupted records.

Source

Thrown at seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/AbstractReadStrategy.java:542

                    }
                    readProcess(
                            split,
                            output,
                            copyInputStream(gzipIn, effectiveMaxBytes),
                            partitionsMap,
                            fileName);
                }
                break;
            case NONE:
                readProcess(
                        split,
                        output,
                        hadoopFileSystemProxy.getInputStream(path),
                        partitionsMap,
                        path);
                break;
            default:
                log.warn(
                        "The file does not support this archive compress type: {}",
                        archiveCompressFormat);
                readProcess(
                        split,
                        output,
                        hadoopFileSystemProxy.getInputStream(path),
                        partitionsMap,
                        path);
        }
    }

    /**
     * Rejects an archive entry whose declared size exceeds the configured POI limit.
     *
     * @param entryName archive entry name used in the error message
     * @param entrySize declared uncompressed entry size in bytes
     * @param maxBytes maximum allowed size in bytes; non-positive values disable the limit
     */

View on GitHub (pinned to cf67b549a7)

Solutions

  1. Set archive_compress_format to a supported value (zip, tar, gzip, bzip2, lz4) or remove it if files are not archives
  2. Re-compress source files with a supported archive format before ingestion
  3. Check the file source docs for the list of supported archive compress formats
  4. If a codec should be supported, extend resolveArchiveCompressedInputStream in AbstractReadStrategy

Example fix

// before
source = {
  archive_compress_format = "7z"
}
// after
source = {
  archive_compress_format = "zip"
}
Defensive patterns

Strategy: validation

Validate before calling

// verify archive_compress_format is supported before submitting the source
Set<String> supported = Set.of("zip", "tar", "gzip", "bzip2", "lzo", "lz4");
String fmt = config.get("archive_compress_format");
if (fmt != null && !supported.contains(fmt.toLowerCase())) {
    throw new IllegalArgumentException("archive_compress_format=" + fmt + " unsupported; use " + supported);
}

Prevention

When it happens

Trigger: Source configured with an archive_compress_format (or a file with a detected archive type) not handled by the switch — e.g. formats other than ZIP/TAR/GZIP/BZIP2/LZ4 — when resolving the input stream for a split.

Common situations: Users set archive_compress_format to a codec the reader doesn't implement; files compressed with 7z/XZ while config claims a supported type; version drift adding new CompressFormat archive values without reader support.

Related errors


AI-assisted analysis of apache/seatunnel@cf67b549a7 (2026-09-10). Data as JSON: /api/errors/171af0006ec65592. Report an issue: GitHub.