<?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 Re: Why does spark.read.csv come back with an error: com.databricks.sql.io.FileReadException: Error while reading file dbfs:/mnt/cntnr/demo/circuits.csv ? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4342#M1089</link>
    <description>&lt;P&gt;This didn't work either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;circuits_df = spark.read.csv("/mnt/cntnr/demo/circuits.csv")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 15:54:43 GMT</pubDate>
    <dc:creator>jch</dc:creator>
    <dc:date>2023-05-18T15:54:43Z</dc:date>
    <item>
      <title>Why does spark.read.csv come back with an error: com.databricks.sql.io.FileReadException: Error while reading file dbfs:/mnt/cntnr/demo/circuits.csv ?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4340#M1087</link>
      <description>&lt;P&gt;I need help understanding why I can't open a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a databricks notebook,  I use this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%fs
&amp;nbsp;
ls /mnt/cntnr/demo&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get back &lt;U&gt;dbfs:/mnt/cntnr/demo/circuits.csv&lt;/U&gt; as one of the path values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this code, I get an error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;circuits_df = spark.read.csv("dbfs:/mnt/cntnr/demo/circuits.csv")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy suggestion &lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 21:48:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4340#M1087</guid>
      <dc:creator>jch</dc:creator>
      <dc:date>2023-05-15T21:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why does spark.read.csv come back with an error: com.databricks.sql.io.FileReadException: Error while reading file dbfs:/mnt/cntnr/demo/circuits.csv ?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4341#M1088</link>
      <description>&lt;P&gt;@jch​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try spark.read.csv without dbfs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can learn more here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/files/index.html" target="test_blank"&gt;https://docs.databricks.com/files/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 05:38:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4341#M1088</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-05-16T05:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why does spark.read.csv come back with an error: com.databricks.sql.io.FileReadException: Error while reading file dbfs:/mnt/cntnr/demo/circuits.csv ?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4342#M1089</link>
      <description>&lt;P&gt;This didn't work either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;circuits_df = spark.read.csv("/mnt/cntnr/demo/circuits.csv")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 15:54:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4342#M1089</guid>
      <dc:creator>jch</dc:creator>
      <dc:date>2023-05-18T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does spark.read.csv come back with an error: com.databricks.sql.io.FileReadException: Error while reading file dbfs:/mnt/cntnr/demo/circuits.csv ?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4343#M1090</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;circuits_df = spark.read.csv("/dbfs/mnt/cntnr/demo/circuits.csv")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 06:14:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4343#M1090</guid>
      <dc:creator>Shivanshu_</dc:creator>
      <dc:date>2023-06-06T06:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why does spark.read.csv come back with an error: com.databricks.sql.io.FileReadException: Error while reading file dbfs:/mnt/cntnr/demo/circuits.csv ?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4344#M1091</link>
      <description>&lt;P&gt;It turns out my spark config was wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #Set Spark configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; configs = {"fs.azure.account.auth.type": "OAuth",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "fs.azure.account.oauth2.client.id": client_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "fs.azure.account.oauth2.client.secret": client_secret,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "fs.azure.account.oauth2.client.endpoint": f"https://login.microsoftonline.com/{tenant_ID}/oauth2/token"}&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 12:56:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-spark-read-csv-come-back-with-an-error-com-databricks/m-p/4344#M1091</guid>
      <dc:creator>jch</dc:creator>
      <dc:date>2023-06-21T12:56:15Z</dc:date>
    </item>
  </channel>
</rss>

