prestodb/presto · error · IllegalArgumentException
Invalid CacheType: + cacheConfig.getCacheType()
Error message
Invalid CacheType: + cacheConfig.getCacheType()
What it means
Fall-through of the switch in createCachingFileSystem over cacheConfig.getCacheType(): the configured cache type is not one of the supported enum values (FILE_MERGE, ALLUXIO, etc.), indicating a misconfigured cache.type property.
Source
Thrown at presto-cache/src/main/java/com/facebook/presto/cache/CacheFactory.java:57
}
checkState(cacheConfig != null && cacheConfig.getCacheType() != null);
switch (cacheConfig.getCacheType()) {
case FILE_MERGE:
return new FileMergeCachingFileSystem(
factoryUri,
factoryConfig,
cacheManager,
fileSystem,
cacheConfig.isValidationEnabled());
case ALLUXIO:
ExtendedFileSystem cachingFileSystem = new AlluxioCachingFileSystem(fileSystem,
factoryUri, cacheConfig.isValidationEnabled(), cacheConfig.isLastModifiedTimeCheckEnabled());
cachingFileSystem.initialize(factoryUri, factoryConfig);
return cachingFileSystem;
default:
throw new IllegalArgumentException("Invalid CacheType: " + cacheConfig.getCacheType());
}
}
}
View on GitHub (pinned to 55bb57d202)
Solutions
- Set the cache type to a supported value (FILE_MERGE or ALLUXIO)
- Check for typos in the hive.cache.type configuration property
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at presto-cache/src/main/java/com/facebook/presto/cache/CacheFactory.java:57 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04).
Data as JSON: /api/errors/b986f50e645ebab5.
Report an issue: GitHub.