apache/hadoop · error · IllegalArgumentException

Unsupported block buffer "{name}"

Error message

Unsupported block buffer "{name}"

What it means

Error "Unsupported block buffer "{name}"" thrown in apache/hadoop.

Source

Thrown at hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/OSSDataBlocks.java:100

   * @throws IllegalArgumentException if the name is unknown.
   */
  static BlockFactory createFactory(AliyunOSSFileSystem owner,
      String name) {
    switch (name) {
    case Constants.FAST_UPLOAD_BUFFER_ARRAY:
      return new ArrayBlockFactory(owner);
    case Constants.FAST_UPLOAD_BUFFER_DISK:
      return new DiskBlockFactory(owner);
    case Constants.FAST_UPLOAD_BYTEBUFFER:
      return new ByteBufferBlockFactory(owner);
    case Constants.FAST_UPLOAD_BUFFER_ARRAY_DISK:
      return new MemoryAndDiskBlockFactory(
          owner, new ArrayBlockFactory(owner));
    case Constants.FAST_UPLOAD_BYTEBUFFER_DISK:
      return new MemoryAndDiskBlockFactory(
          owner, new ByteBufferBlockFactory(owner));
    default:
      throw new IllegalArgumentException("Unsupported block buffer" +
          " \"" + name + '"');
    }
  }

  /**
   * The output information for an upload.
   * It can be one of a file or an input stream.
   * When closed, any stream is closed. Any source file is untouched.
   */
  static final class BlockUploadData implements Closeable {
    private final File file;
    private final InputStream uploadStream;

    /**
     * File constructor; input stream will be null.
     * @param file file to upload
     */
    BlockUploadData(File file) {

View on GitHub (pinned to 2add963021)

Solutions

  1. Set fs.oss.data.blocks.buffer to a supported value (disk, array, or the configured bytebuffer implementation).

When it happens

Trigger: Thrown at hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/OSSDataBlocks.java:100 when the library encounters an invalid state.

Common situations: See trigger scenarios.


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