{"record":{"id":"4827303b0f852cb7","repo":"apache/hadoop","slug":"fs-azure-fns-account-service-type","errorCode":"fs.azure.fns.account.service.type","errorMessage":"Service Type Cannot be BLOB for HNS Account","messagePattern":"Service Type Cannot be BLOB 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":797,"sourceCode":"  /**\n   * Returns whether there is a need to move traffic from DFS to Blob.\n   * Needed when the service type is DFS and operations are experiencing compatibility issues.\n   * @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","sourceCodeStart":779,"sourceCodeEnd":815,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java#L779-L815","documentation":"Error \"Service Type Cannot be BLOB for HNS Account\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java:797 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["For HNS-enabled accounts use the DFS service type; do not set the service type to BLOB."],"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"}