SAS requires current ABFS client

SAS requires the current ABFS client; old clients generate an `IllegalArgumentException` error.

Written by kavya.parag

Last published at: December 7th, 2022

Problem

While using SAS token authentication, you encounter an IllegalArgumentException error.

IllegalArgumentException: No enum constant shaded.databricks.v20180920_b33d810.org.apache.hadoop.fs.azurebfs.services.AuthType.SAS

Cause

SAS requires the current ABFS client. Previous ABFS clients do not support SAS.

Solution

You must use the current ABFS client (shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem) to use SAS.

This ABFS client is available by default in Databricks Runtime 7.3 LTS and above.

If you are using an old ABFS client, you should update your code so it references the current ABFS client.