apache/hadoop · error · IOException
Failed to get key version name for {}
Error message
Failed to get key version name for {} What it means
Error "Failed to get key version name for {}" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java:8389
readUnlock(RwLockMode.FS, operationName, getLockReportInfoSupplier(null));
logAuditEvent(success, operationName, null);
}
}
private void reencryptEncryptionZoneInt(final FSPermissionChecker pc,
final String zone, final ReencryptAction action,
final boolean logRetryCache) throws IOException {
if (getProvider() == null) {
throw new IOException("No key provider configured, re-encryption "
+ "operation is rejected");
}
String keyVersionName = null;
if (action == ReencryptAction.START) {
// get zone's latest key version name out of the lock.
keyVersionName =
FSDirEncryptionZoneOp.getCurrentKeyVersion(dir, pc, zone);
if (keyVersionName == null) {
throw new IOException("Failed to get key version name for " + zone);
}
LOG.info("Re-encryption using key version " + keyVersionName
+ " for zone " + zone);
}
writeLock(RwLockMode.FS);
try {
checkOperation(OperationCategory.WRITE);
checkNameNodeSafeMode("NameNode in safemode, cannot " + action
+ " re-encryption on zone " + zone);
List<XAttr> xattrs;
dir.writeLock();
try {
final INodesInPath iip = dir.resolvePath(pc, zone, DirOp.WRITE);
if (iip.getLastINode() == null) {
throw new FileNotFoundException(zone + " does not exist.");
}
switch (action) {
case START:View on GitHub (pinned to 2add963021)
Solutions
- Verify the encryption key exists in the configured KMS and that the NameNode can reach the key provider; create the key version if missing.
When it happens
Trigger: During re-encryption the NameNode cannot resolve the key version name for a file or zone from the key provider.
Common situations: Re-encrypting a zone whose encryption key was deleted from the KMS, or KMS connectivity failures.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/91a90f3a4b5f50f9.
Report an issue: GitHub.