<?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 Read the file from datalake in databricks -No such file directory error in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/read-the-file-from-datalake-in-databricks-no-such-file-directory/m-p/2810#M13</link>
    <description>&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with reading the file from ADLS gen 2.&lt;/P&gt;&lt;P&gt;I have dont the mounting properly as after executing&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbutils.fs.ls('/mnt/bronze')&lt;/P&gt;&lt;P&gt;&amp;nbsp;I can see the file path.&lt;/P&gt;&lt;P&gt;the way how I did the mounting:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;
# dbutils.fs.mount(
#   source = "abfss://"+container_read+"@"+storage_account_name_read+".dfs.core.windows.net/",
#   mount_point = "/mnt/dataverse",
#   extra_configs = configs)
the way how I read the file:
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the way how I read the file:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;with open('/mnt/dataverse/model.json', 'r') as f:
&amp;nbsp;
    data = f.read()
&amp;nbsp;
    manifest = json.loads(data)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it throws the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;No such file or directory&lt;/P&gt;&lt;P&gt;Sketchy part is that I can read the file usign different cluster (&amp;nbsp;&lt;/P&gt;&lt;P&gt;runtime  11.3.x-scala2.12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;) but after switching to&amp;nbsp;&lt;/P&gt;&lt;P&gt;12.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;cluster I cant read it.&lt;/P&gt;&lt;P&gt;Any idea how can I fix this?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 13:02:01 GMT</pubDate>
    <dc:creator>g96g</dc:creator>
    <dc:date>2023-06-20T13:02:01Z</dc:date>
    <item>
      <title>Read the file from datalake in databricks -No such file directory error</title>
      <link>https://community.databricks.com/t5/machine-learning/read-the-file-from-datalake-in-databricks-no-such-file-directory/m-p/2810#M13</link>
      <description>&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with reading the file from ADLS gen 2.&lt;/P&gt;&lt;P&gt;I have dont the mounting properly as after executing&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbutils.fs.ls('/mnt/bronze')&lt;/P&gt;&lt;P&gt;&amp;nbsp;I can see the file path.&lt;/P&gt;&lt;P&gt;the way how I did the mounting:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;nbsp;
# dbutils.fs.mount(
#   source = "abfss://"+container_read+"@"+storage_account_name_read+".dfs.core.windows.net/",
#   mount_point = "/mnt/dataverse",
#   extra_configs = configs)
the way how I read the file:
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the way how I read the file:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;with open('/mnt/dataverse/model.json', 'r') as f:
&amp;nbsp;
    data = f.read()
&amp;nbsp;
    manifest = json.loads(data)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it throws the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;No such file or directory&lt;/P&gt;&lt;P&gt;Sketchy part is that I can read the file usign different cluster (&amp;nbsp;&lt;/P&gt;&lt;P&gt;runtime  11.3.x-scala2.12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;) but after switching to&amp;nbsp;&lt;/P&gt;&lt;P&gt;12.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;cluster I cant read it.&lt;/P&gt;&lt;P&gt;Any idea how can I fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:02:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/read-the-file-from-datalake-in-databricks-no-such-file-directory/m-p/2810#M13</guid>
      <dc:creator>g96g</dc:creator>
      <dc:date>2023-06-20T13:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read the file from datalake in databricks -No such file directory error</title>
      <link>https://community.databricks.com/t5/machine-learning/read-the-file-from-datalake-in-databricks-no-such-file-directory/m-p/2811#M14</link>
      <description>&lt;P&gt;Hi @Givi Salu​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 03:24:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/read-the-file-from-datalake-in-databricks-no-such-file-directory/m-p/2811#M14</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-21T03:24:41Z</dc:date>
    </item>
  </channel>
</rss>

