apache/hadoop · error · InvalidConfigurationValueException

Invalid configuration value detected for

Error message

Invalid configuration value detected for %s

What it means

Base-case guard of the configuration validator framework: the config value was null/empty and throwIfInvalid was requested, so the missing value is reported as invalid for the given config key rather than silently defaulting.

Solutions

  1. Correct the value of the named configuration key so it passes its validator.
  2. Consult the ABFS configuration documentation for the accepted format of the key.
Defensive patterns

Strategy: validation

When it happens

Trigger: A configuration property fails the generic ABFS configuration validation during filesystem initialization.

Common situations: See trigger scenarios.


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

Appendix: source

Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/diagnostics/ConfigurationBasicValidator.java:49

  private final boolean throwIfInvalid;

  ConfigurationBasicValidator(final String configKey, final T defaultVal, final boolean throwIfInvalid) {
    this.configKey = configKey;
    this.defaultVal = defaultVal;
    this.throwIfInvalid = throwIfInvalid;
  }

  /**
   * This method handles the base case where the configValue is null, based on the throwIfInvalid it either throws or returns the defaultVal,
   * otherwise it returns null indicating that the configValue needs to be validated further.
   * @param configValue the configuration value set by the user
   * @return the defaultVal in case the configValue is null and not required to be set, null in case the configValue not null
   * @throws InvalidConfigurationValueException in case the configValue is null and required to be set
   */
  public T validate(final String configValue) throws InvalidConfigurationValueException {
    if (configValue == null) {
      if (this.throwIfInvalid) {
        throw new InvalidConfigurationValueException(this.configKey);
      }
      return this.defaultVal;
    }
    return null;
  }

  public T getDefaultVal() {
    return this.defaultVal;
  }

  public String getConfigKey() {
    return this.configKey;
  }

  public boolean getThrowIfInvalid() {
    return this.throwIfInvalid;
  }
}

View on GitHub (pinned to 2add963021)