<?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 Spark submit job running python file in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/spark-submit-job-running-python-file/m-p/44030#M27593</link>
    <description>&lt;P&gt;I have a spark submit job which is running one python file called main.py.&lt;/P&gt;&lt;P&gt;The other file is alert.py which is being imported in main.py.&lt;/P&gt;&lt;P&gt;Also main.py is using multiple config files.&lt;/P&gt;&lt;P&gt;Alert.py is passed in --py-files and other config files are passed as --files.&lt;/P&gt;&lt;P&gt;All the files are in S3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help in running the same in Databricks.&lt;/P&gt;&lt;P&gt;Trying bt spark submit task and spark python task, not sure how to pass --py-files and --files. And even on passing these in parameters, getting no module alert found. Which means it is not recognising any other files.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 17:45:50 GMT</pubDate>
    <dc:creator>Kratik</dc:creator>
    <dc:date>2023-09-07T17:45:50Z</dc:date>
    <item>
      <title>Spark submit job running python file</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-submit-job-running-python-file/m-p/44030#M27593</link>
      <description>&lt;P&gt;I have a spark submit job which is running one python file called main.py.&lt;/P&gt;&lt;P&gt;The other file is alert.py which is being imported in main.py.&lt;/P&gt;&lt;P&gt;Also main.py is using multiple config files.&lt;/P&gt;&lt;P&gt;Alert.py is passed in --py-files and other config files are passed as --files.&lt;/P&gt;&lt;P&gt;All the files are in S3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help in running the same in Databricks.&lt;/P&gt;&lt;P&gt;Trying bt spark submit task and spark python task, not sure how to pass --py-files and --files. And even on passing these in parameters, getting no module alert found. Which means it is not recognising any other files.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 17:45:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-submit-job-running-python-file/m-p/44030#M27593</guid>
      <dc:creator>Kratik</dc:creator>
      <dc:date>2023-09-07T17:45:50Z</dc:date>
    </item>
  </channel>
</rss>

