apache/hadoop · error · InvalidObjectException

No sticky bit in FsPermission

Error message

No sticky bit in FsPermission

What it means

Error "No sticky bit in FsPermission" thrown in apache/hadoop.

Source

Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsPermission.java:495

  private static class ImmutableFsPermission extends FsPermission {
    private static final long serialVersionUID = 0x1bab54bd;
    public ImmutableFsPermission(short permission) {
      super(permission);
    }

    @Override
    public void readFields(DataInput in) throws IOException {
      throw new UnsupportedOperationException();
    }
  }

  @Override
  public void validateObject() throws InvalidObjectException {
    if (null == useraction || null == groupaction || null == otheraction) {
      throw new InvalidObjectException("Invalid mode in FsPermission");
    }
    if (null == stickyBit) {
      throw new InvalidObjectException("No sticky bit in FsPermission");
    }
  }
}

View on GitHub (pinned to 2add963021)

Solutions

  1. Use the FsPermission constructor/factory that accepts a sticky bit if you need it.
  2. Remove the sticky bit requirement, or create the permission with setStickyBit enabled.

When it happens

Trigger: Thrown when code attempts to read the sticky bit from an FsPermission instance that was created without sticky-bit support enabled.

Common situations: See trigger scenarios.


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