apache/hadoop · error · AbfsRestOperationException
CopyBlobFailed
CopyBlobFailed
Error message
copy to path %s failed due to: %s
What it means
Error "copy to path %s failed due to: %s" thrown in apache/hadoop.
Source
Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/BlobRenameHandler.java:554
* or is aborted.
*/
@VisibleForTesting
public BlobCopyProgress handleCopyInProgress(final Path dstPath,
final TracingContext tracingContext,
final String copyId) throws AzureBlobFileSystemException {
AbfsRestOperation op = getAbfsClient().getPathStatus(
dstPath.toUri().getPath(),
tracingContext, null, false);
if (op.getResult() != null && copyId != null
&& copyId.equals(op.getResult().getResponseHeader(X_MS_COPY_ID))) {
final String copyStatus = op.getResult()
.getResponseHeader(X_MS_COPY_STATUS);
if (COPY_STATUS_SUCCESS.equalsIgnoreCase(copyStatus)) {
return BlobCopyProgress.SUCCESS;
}
if (COPY_STATUS_FAILED.equalsIgnoreCase(copyStatus)) {
throw new AbfsRestOperationException(
COPY_BLOB_FAILED.getStatusCode(), COPY_BLOB_FAILED.getErrorCode(),
String.format("copy to path %s failed due to: %s",
dstPath.toUri().getPath(),
op.getResult().getResponseHeader(X_MS_COPY_STATUS_DESCRIPTION)),
new Exception(COPY_BLOB_FAILED.getErrorCode()));
}
if (COPY_STATUS_ABORTED.equalsIgnoreCase(copyStatus)) {
throw new AbfsRestOperationException(
COPY_BLOB_ABORTED.getStatusCode(), COPY_BLOB_ABORTED.getErrorCode(),
String.format("copy to path %s aborted", dstPath.toUri().getPath()),
new Exception(COPY_BLOB_ABORTED.getErrorCode()));
}
}
return BlobCopyProgress.PENDING;
}
/**
* Translates the destination path for a blob part of a source directory gettingView on GitHub (pinned to 2add963021)
Solutions
- Inspect the reported cause in the message and address it (permissions, capacity, network).
- Retry the rename/copy operation after resolving the underlying failure.
When it happens
Trigger: The server-side copy underlying a blob rename fails with the reported storage error.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/178f33b87c1086ef.
Report an issue: GitHub.