apache/hadoop · error · SASTokenProviderException
Configured Fixed SAS Token is empty or null.
Error message
Configured Fixed SAS Token is empty or null.
What it means
Thrown by the built-in FixedSASTokenProvider at initialize time: fs.azure.sas.fixed.token is null or empty, so the provider has no token to return under SAS authentication.
Solutions
- Set the fixed SAS token configuration (fs.azure.sas.fixed.token) to a valid non-empty SAS string.
- Remove the fixed token configuration to use another auth mechanism.
Defensive patterns
Strategy: validation
When it happens
Trigger: The fixed SAS token provider is selected but the configured token is null or empty.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/9a7aba620f260bf7.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/FixedSASTokenProvider.java:38
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.azurebfs.contracts.exceptions.SASTokenProviderException;
import org.apache.hadoop.fs.azurebfs.extensions.SASTokenProvider;
/**
* In house implementation of {@link SASTokenProvider} to use a fixed SAS token with ABFS.
* Use this to avoid implementing a Custom Token Provider just to return fixed SAS.
* Fixed SAS Token to be provided using the config "fs.azure.sas.fixed.token".
*/
public class FixedSASTokenProvider implements SASTokenProvider {
private String fixedSASToken;
public FixedSASTokenProvider(final String fixedSASToken) throws SASTokenProviderException {
this.fixedSASToken = fixedSASToken;
if (fixedSASToken == null || fixedSASToken.isEmpty()) {
throw new SASTokenProviderException(
"Configured Fixed SAS Token is empty or null.");
}
}
@Override
public void initialize(final Configuration configuration,
final String accountName)
throws IOException {
}
/**
* Returns the fixed SAS Token configured.
* @param account the name of the storage account.
* @param fileSystem the name of the fileSystem.
* @param path the file or directory path.
* @param operation the operation to be performed on the path.
* @return Fixed SAS Token
* @throws IOException neverView on GitHub (pinned to 2add963021)