<?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 FileNotFoundError when running dbx execute in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34117#M24898</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to databricks, this might be a basic question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find a way to run my local python file with databricks successfully. When I run the following `execute` command, I got a FileNotFoundError.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`dbx execute --cluster-id=*** --job=Sample-Training-Job-File -e test --no-rebuild --no-package`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`FileNotFoundError: File notebooks/training_file.py is mentioned in the task or job definition, but is non-existent`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my job definition in `deployment.yml`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;environments:&lt;/P&gt;&lt;P&gt;  test:&lt;/P&gt;&lt;P&gt;    strict_path_adjustment_policy: true&lt;/P&gt;&lt;P&gt;    jobs:&lt;/P&gt;&lt;P&gt;      - name: "Sample-Training-Job-File"&lt;/P&gt;&lt;P&gt;        new_cluster:&lt;/P&gt;&lt;P&gt;          spark_version: "10.4.x-scala2.12"&lt;/P&gt;&lt;P&gt;          num_workers: 1&lt;/P&gt;&lt;P&gt;          node_type_id: "Standard_DS3_v2"&lt;/P&gt;&lt;P&gt;        spark_python_task:&lt;/P&gt;&lt;P&gt;          python_file: "file://notebooks/training_file.py"&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any tips and ideas.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 07:11:45 GMT</pubDate>
    <dc:creator>dslin</dc:creator>
    <dc:date>2022-08-22T07:11:45Z</dc:date>
    <item>
      <title>FileNotFoundError when running dbx execute</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34117#M24898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to databricks, this might be a basic question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find a way to run my local python file with databricks successfully. When I run the following `execute` command, I got a FileNotFoundError.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`dbx execute --cluster-id=*** --job=Sample-Training-Job-File -e test --no-rebuild --no-package`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`FileNotFoundError: File notebooks/training_file.py is mentioned in the task or job definition, but is non-existent`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my job definition in `deployment.yml`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;environments:&lt;/P&gt;&lt;P&gt;  test:&lt;/P&gt;&lt;P&gt;    strict_path_adjustment_policy: true&lt;/P&gt;&lt;P&gt;    jobs:&lt;/P&gt;&lt;P&gt;      - name: "Sample-Training-Job-File"&lt;/P&gt;&lt;P&gt;        new_cluster:&lt;/P&gt;&lt;P&gt;          spark_version: "10.4.x-scala2.12"&lt;/P&gt;&lt;P&gt;          num_workers: 1&lt;/P&gt;&lt;P&gt;          node_type_id: "Standard_DS3_v2"&lt;/P&gt;&lt;P&gt;        spark_python_task:&lt;/P&gt;&lt;P&gt;          python_file: "file://notebooks/training_file.py"&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any tips and ideas.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 07:11:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34117#M24898</guid>
      <dc:creator>dslin</dc:creator>
      <dc:date>2022-08-22T07:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError when running dbx execute</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34119#M24900</link>
      <description>&lt;P&gt;Hi @Di Lin​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does @Debayan Mukherjee​&amp;nbsp; response answer your question? If yes, would you be happy to mark it as best so that other members can find the solution more quickly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 09:29:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34119#M24900</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-20T09:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError when running dbx execute</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34120#M24901</link>
      <description>Hi Vidula,&lt;BR /&gt;Sure. This has been resolved now.</description>
      <pubDate>Tue, 20 Sep 2022 11:30:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34120#M24901</guid>
      <dc:creator>dslin</dc:creator>
      <dc:date>2022-09-20T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError when running dbx execute</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34121#M24902</link>
      <description>&lt;P&gt;Hi @Di Lin​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 11:46:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34121#M24902</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-20T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError when running dbx execute</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34118#M24899</link>
      <description>&lt;P&gt;Hi, If you are using dbx , could you please make sure if all the requirements are fulfilled? &lt;A href="https://docs.databricks.com/dev-tools/dbx.html#requirements" alt="https://docs.databricks.com/dev-tools/dbx.html#requirements" target="_blank"&gt;https://docs.databricks.com/dev-tools/dbx.html#requirements&lt;/A&gt;. Also, where are you running the yml for the same?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 15:29:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-when-running-dbx-execute/m-p/34118#M24899</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-08-26T15:29:11Z</dc:date>
    </item>
  </channel>
</rss>

