Configure storage credentials for Delta Lake

Databricks stores data for Delta Lake tables in cloud object storage. Configuring access to cloud object storage requires permissions within the cloud account that contains your storage account. See Interact with external data on Databricks.

Pass storage credentials as DataFrame options

Delta Lake supports specifying storage credentials as options for DataFrameReader and DataFrameWriter. You might use this if you need to interact with data in several storage accounts governed by different access keys.


This feature is available in Databricks Runtime 10.1 and above.

For example, you can pass your storage credentails through DataFrame options:

    spark.conf.set("", "true")
df1 = \
  .option("", "<client-email-1>") \
  .option("", "<project-id-1>") \
  .option("", "<private-key-1>") \
  .option("", "<private-key-id-1>") \
df2 = \
  .option("", "<client-email-2>") \
  .option("", "<project-id-2>") \
  .option("", "<private-key-2>") \
  .option("", "<private-key-id-2>") \
df1.union(df2).write \
  .mode("overwrite") \
  .option("", "<client-email-3>") \
  .option("", "<project-id-3>") \
  .option("", "<private-key-3>") \
  .option("", "<private-key-id-3>") \
      spark.conf.set("", "true")

val df1 =
  .option("", "<client-email-1>")
  .option("", "<project-id-1>")
  .option("", "<private-key-1>")
  .option("", "<private-key-id-1>")
val df2 =
  .option("", "<client-email-2>")
  .option("", "<project-id-2>")
  .option("", "<private-key-2>")
  .option("", "<private-key-id-2>")
  .option("", "<client-email-3>")
  .option("", "<project-id-3>")
  .option("", "<private-key-3>")
  .option("", "<private-key-id-3>")