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
- Set archive_compress_format to a supported value (zip, tar, gzip, bzip2, lz4) or remove it if files are not archives
- Re-compress source files with a supported archive format before ingestion
- Check the file source docs for the list of supported archive compress formats
- 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
- Only set archive_compress_format for values listed in the file source docs
- Uncompress files to a supported format upstream if unsupported codecs are required
- Inspect a sample file locally (file/magic bytes) to confirm its archive type
- When adding archive codecs, update AbstractReadStrategy alongside the enum
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
- The file does not support the compressed file reading
- CanalJson file does not support this compress type: {}
- Csv file does not support this compress type: {}
- DebeziumJson file does not support this compress type: {}
- Json file does not support this compress type: {}
AI-assisted analysis of apache/seatunnel@cf67b549a7 (2026-09-10).
Data as JSON: /api/errors/171af0006ec65592.
Report an issue: GitHub.