apache/hadoop · error · IOException

Fetch fail on include for

Error message

Fetch fail on include for '{}' with no fallback while loading '{}'

What it means

Thrown from Configuration's XML stanza handler when an xi:include fetch failed and no fallback (xPointer/prepare) was provided or the fallback already ended. The include could not be satisfied, so loading the configuration aborts with the include href and owning document named.

Solutions

  1. Make the included resource fetchable, or provide a fallback resource for the include.

Example fix

Fix the include href or add a fallback section.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Raised at runtime when the documented precondition or configuration requirement for this operation is violated.

Common situations: Misconfigured or missing property, invalid user input, or calling the API before its prerequisites are met.


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

Appendix: source

Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java:3387

      case "value":
        if (token.length() > 0) {
          confValue = StringInterner.weakIntern(tokenStr);
        }
        break;
      case "final":
        confFinal = "true".equals(tokenStr);
        break;
      case "source":
        confSource.add(StringInterner.weakIntern(tokenStr));
        break;
      case "tag":
        if (token.length() > 0) {
          confTag = StringInterner.weakIntern(tokenStr);
        }
        break;
      case "include":
        if (fallbackAllowed && !fallbackEntered) {
          throw new IOException("Fetch fail on include for '"
              + confInclude + "' with no fallback while loading '"
              + name + "'");
        }
        fallbackAllowed = false;
        fallbackEntered = false;
        break;
      case "property":
        handleEndProperty();
        break;
      default:
        break;
      }
    }

    void handleEndProperty() {
      if (confName == null || (!fallbackAllowed && fallbackEntered)) {
        return;
      }

View on GitHub (pinned to 2add963021)