{"record":{"id":"85606f5b28831919","repo":"apache/hadoop","slug":"fs-default-name","errorCode":"fs.default.name","errorMessage":"Blob Endpoint Url Cannot be used to initialize filesystem for HNS Account","messagePattern":"Blob Endpoint Url Cannot be used to initialize filesystem for HNS Account","errorType":"validation","errorClass":"InvalidConfigurationValueException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java","lineNumber":800,"sourceCode":"   * @return true if fallback enabled.\n   */\n  public boolean isDfsToBlobFallbackEnabled() {\n    return isDfsToBlobFallbackEnabled;\n  }\n\n  /**\n   * Checks if the service type configured is valid for account type used.\n   * HNS Enabled accounts cannot have service type as BLOB.\n   * @param isHNSEnabled Flag to indicate if HNS is enabled for the account.\n   * @throws InvalidConfigurationValueException if the service type is invalid.\n   */\n  public void validateConfiguredServiceType(boolean isHNSEnabled)\n      throws InvalidConfigurationValueException {\n    if (isHNSEnabled && getConfiguredServiceTypeForFNSAccounts() == AbfsServiceType.BLOB) {\n      throw new InvalidConfigurationValueException(\n          FS_AZURE_FNS_ACCOUNT_SERVICE_TYPE, \"Service Type Cannot be BLOB for HNS Account\");\n    } else if (isHNSEnabled && fsConfiguredServiceTypeFromUrl == AbfsServiceType.BLOB) {\n      throw new InvalidConfigurationValueException(FS_DEFAULT_NAME_KEY,\n          \"Blob Endpoint Url Cannot be used to initialize filesystem for HNS Account\");\n    }\n  }\n\n  /**\n   * Gets the Azure Storage account name corresponding to this instance of configuration.\n   * @return the Azure Storage account name\n   */\n  public String getAccountName() {\n    return accountName;\n  }\n\n  /**\n   * Gets client correlation ID provided in config.\n   * @return Client Correlation ID config\n   */\n  public String getClientCorrelationId() {\n    return clientCorrelationId;","sourceCodeStart":782,"sourceCodeEnd":818,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java#L782-L818","documentation":"Error \"Blob Endpoint Url Cannot be used to initialize filesystem for HNS Account\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java:800 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the DFS endpoint (e.g. account.dfs.core.windows.net) instead of the blob endpoint for HNS accounts."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}