apache/hadoop · error · UnsupportedOperationException
Cannot call reencryptEncryptionZone on a symlink to a non-Di
Error message
Cannot call reencryptEncryptionZone on a symlink to a non-DistributedFileSystem: {} -> {} What it means
Error "Cannot call reencryptEncryptionZone on a symlink to a non-DistributedFileSystem: {} -> {}" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java:3046
/* HDFS only */
public void reencryptEncryptionZone(final Path zone,
final ReencryptAction action) throws IOException {
final Path absF = fixRelativePart(zone);
new FileSystemLinkResolver<Void>() {
@Override
public Void doCall(final Path p) throws IOException {
dfs.reencryptEncryptionZone(getPathName(p), action);
return null;
}
@Override
public Void next(final FileSystem fs, final Path p) throws IOException {
if (fs instanceof DistributedFileSystem) {
DistributedFileSystem myDfs = (DistributedFileSystem) fs;
myDfs.reencryptEncryptionZone(p, action);
return null;
}
throw new UnsupportedOperationException(
"Cannot call reencryptEncryptionZone"
+ " on a symlink to a non-DistributedFileSystem: " + zone
+ " -> " + p);
}
}.resolve(this, absF);
}
/* HDFS only */
public RemoteIterator<ZoneReencryptionStatus> listReencryptionStatus()
throws IOException {
return dfs.listReencryptionStatus();
}
/* HDFS only */
public FileEncryptionInfo getFileEncryptionInfo(final Path path)
throws IOException {
Path absF = fixRelativePart(path);
return new FileSystemLinkResolver<FileEncryptionInfo>() {View on GitHub (pinned to 2add963021)
Solutions
- Run reencryptEncryptionZone on the real path within the DistributedFileSystem.
- Resolve symlinks first; reencryption must target the actual HDFS encryption zone.
When it happens
Trigger: reencryptEncryptionZone is invoked through a symlink whose target is not a DistributedFileSystem, which does not support encryption zone re-encryption.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/0484368e52b2c95d.
Report an issue: GitHub.