apache/hadoop · error · IOException

Remote filesystem for provided replica

Error message

Remote filesystem for provided replica ${this} does not exist

What it means

ProvidedReplica.getDataInputStream: the replica's remoteFS reference is null (no remote FileSystem could be resolved for the provided storage), so the block bytes cannot be opened from remote storage.

Solutions

  1. Verify the external filesystem/URI configured for provided storage is reachable and correctly configured (fs.provided.* settings).
  2. Check credentials and network access to the remote store backing the provided replica.
Defensive patterns

Strategy: validation

When it happens

Trigger: Accessing a provided replica whose backing remote filesystem cannot be resolved or connected.

Common situations: The remote filesystem backing a provided replica is unavailable. Verify the mount or object-store connector for the provided storage.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/7cea3d8926d5dece. Report an issue: GitHub.

Appendix: source

Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ProvidedReplica.java:201

  public InputStream getDataInputStream(long seekOffset) throws IOException {
    if (remoteFS != null) {
      FSDataInputStream ins;
      try {
        if (pathHandle != null) {
          ins = remoteFS.open(pathHandle, conf.getInt(IO_FILE_BUFFER_SIZE_KEY,
              IO_FILE_BUFFER_SIZE_DEFAULT));
        } else {
          ins = remoteFS.open(new Path(getRemoteURI()));
        }
      } catch (UnsupportedOperationException e) {
        throw new IOException("PathHandle specified, but unsuported", e);
      }

      ins.seek(fileOffset + seekOffset);
      return new BoundedInputStream(
          new FSDataInputStream(ins), getBlockDataLength());
    } else {
      throw new IOException("Remote filesystem for provided replica " + this +
          " does not exist");
    }
  }

  @Override
  public OutputStream getDataOutputStream(boolean append) throws IOException {
    throw new UnsupportedOperationException(
        "OutputDataStream is not implemented for ProvidedReplica");
  }

  @Override
  public URI getMetadataURI() {
    return null;
  }

  @Override
  public OutputStream getMetadataOutputStream(boolean append)
      throws IOException {

View on GitHub (pinned to 2add963021)