apache/flink · error · UnsupportedOperationException

The path based writers do not support persisting

Error message

The path based writers do not support persisting

What it means

Error "The path based writers do not support persisting" thrown in apache/flink.

Source

Thrown at flink-formats/flink-hadoop-bulk/src/main/java/org/apache/flink/formats/hadoop/bulk/HadoopPathBasedPartFileWriter.java:65

            HadoopPathBasedBulkWriter<IN> writer,
            HadoopFileCommitter fileCommitter,
            long createTime) {

        super(bucketID, createTime);

        this.writer = writer;
        this.fileCommitter = fileCommitter;
    }

    @Override
    public void write(IN element, long currentTime) throws IOException {
        writer.addElement(element);
        markWrite(currentTime);
    }

    @Override
    public InProgressFileRecoverable persist() {
        throw new UnsupportedOperationException("The path based writers do not support persisting");
    }

    @Override
    public PendingFileRecoverable closeForCommit() throws IOException {
        writer.flush();
        writer.finish();
        fileCommitter.preCommit();
        return new HadoopPathBasedPendingFile(fileCommitter, getSize()).getRecoverable();
    }

    @Override
    public void dispose() {
        writer.dispose();
    }

    @Override
    public long getSize() throws IOException {
        return writer.getSize();

View on GitHub (pinned to 2f3c205e92)

Solutions

  1. Address the cause reported by the error message: The path based writers do not support persisting
  2. Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry.

Example fix

Correct the condition described ("The path based writers do not support persisting") and rerun the job or command.

When it happens

Trigger: Triggered at runtime when the operation fails because: The path based writers do not support persisting.

Common situations: Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: The path based writers do not support persisting.


AI-assisted analysis of apache/flink@2f3c205e92 (2026-08-14). Data as JSON: /api/errors/7d50e8e506518740. Report an issue: GitHub.