<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic stream from azure credentials in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/stream-from-azure-credentials/m-p/11414#M6394</link>
    <description>&lt;P&gt;I am trying to read stream from azure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(spark.readStream
 .format("cloudFiles")
 .option('cloudFiles.clientId', CLIENT_ID)
 .option('cloudFiles.clientSecret', CLIENT_SECRET)
 .option('cloudFiles.tenantId', TENTANT_ID)
 .option("header", "true")
 .option("cloudFiles.format", "csv")
 .option("cloudFiles.schemaLocation", CHECKPOINT_PATH)
 .load(f"wasbs://{CONTAINER}@{ACCOUNT_NAME}.blob.core.windows.net/"+AZURE_PATH)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;yet I get&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Py4JJavaError: An error occurred while calling o9451.load.
: shaded.databricks.org.apache.hadoop.fs.azure.AzureException: shaded.databricks.org.apache.hadoop.fs.azure.AzureException: Container &amp;lt;container&amp;gt; in account &amp;lt;account&amp;gt;.blob.core.windows.net not found, and we can't create it using anoynomous credentials, and no credentials found for them in the configuration.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I know the location exists and it seems it ignores the provided credentials. How can I set the credentials?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 11:08:59 GMT</pubDate>
    <dc:creator>chanansh</dc:creator>
    <dc:date>2023-01-18T11:08:59Z</dc:date>
    <item>
      <title>stream from azure credentials</title>
      <link>https://community.databricks.com/t5/data-engineering/stream-from-azure-credentials/m-p/11414#M6394</link>
      <description>&lt;P&gt;I am trying to read stream from azure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(spark.readStream
 .format("cloudFiles")
 .option('cloudFiles.clientId', CLIENT_ID)
 .option('cloudFiles.clientSecret', CLIENT_SECRET)
 .option('cloudFiles.tenantId', TENTANT_ID)
 .option("header", "true")
 .option("cloudFiles.format", "csv")
 .option("cloudFiles.schemaLocation", CHECKPOINT_PATH)
 .load(f"wasbs://{CONTAINER}@{ACCOUNT_NAME}.blob.core.windows.net/"+AZURE_PATH)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;yet I get&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Py4JJavaError: An error occurred while calling o9451.load.
: shaded.databricks.org.apache.hadoop.fs.azure.AzureException: shaded.databricks.org.apache.hadoop.fs.azure.AzureException: Container &amp;lt;container&amp;gt; in account &amp;lt;account&amp;gt;.blob.core.windows.net not found, and we can't create it using anoynomous credentials, and no credentials found for them in the configuration.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I know the location exists and it seems it ignores the provided credentials. How can I set the credentials?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 11:08:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/stream-from-azure-credentials/m-p/11414#M6394</guid>
      <dc:creator>chanansh</dc:creator>
      <dc:date>2023-01-18T11:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: stream from azure credentials</title>
      <link>https://community.databricks.com/t5/data-engineering/stream-from-azure-credentials/m-p/11415#M6395</link>
      <description>&lt;P&gt;@Hanan Shteingart​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you're using the Azure Blob Storage connector for Spark to read data from Azure. The error message suggests that the credentials you provided are not being used by the connector.&lt;/P&gt;&lt;P&gt;To specify the credentials, you can set the following options in your code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;.option("cloudFiles.accountName", ACCOUNT_NAME)
.option("cloudFiles.accountKey", ACCOUNT_KEY)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Replace ACCOUNT_NAME and ACCOUNT_KEY with the name and key of your Azure storage account, respectively. You can find the account key in the Azure portal under the "Access keys" section of your storage account.&lt;/P&gt;&lt;P&gt;Note that providing the account key in your code is not recommended for security reasons. Instead, you should consider using Azure Key Vault or other secure key management solutions to store and retrieve your credentials.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 14:53:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/stream-from-azure-credentials/m-p/11415#M6395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-10T14:53:04Z</dc:date>
    </item>
  </channel>
</rss>

