<?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: Retrieve job-level parameters in spark_python_task (not notebooks) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75516#M34973</link>
    <description>&lt;P&gt;During this weekend, I found a workaround by leveraging the databaricks jobs api.&lt;/P&gt;&lt;P&gt;It works but I must provide credentials, whereas I'm looking forward to a solution without credentials since I'm already in a job run.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2024 18:18:21 GMT</pubDate>
    <dc:creator>xiangzhu</dc:creator>
    <dc:date>2024-06-23T18:18:21Z</dc:date>
    <item>
      <title>Retrieve job-level parameters in spark_python_task (not notebooks)</title>
      <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75324#M34932</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to use job parameters in spark_python_task (not notebook_task), does anyone know how to retrieve these parameters inside pure Python ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangzhu_0-1718966193180.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8863i20CE308C967639BA/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="xiangzhu_0-1718966193180.png" alt="xiangzhu_0-1718966193180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;1/&amp;nbsp;dbutils.widgets.get("debug"&lt;SPAN&gt;), got error:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; com.databricks.dbutils_v1.InputWidgetNotDefined: No input widget named debug is defined&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;2/ use &lt;STRONG&gt;argparse&lt;/STRONG&gt; to define a debug param, but after test, debug is not passed as param:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; parser: (Namespace(debug=None), [])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;My job has &lt;STRONG&gt;debug&lt;/STRONG&gt; param:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangzhu_1-1718966305318.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8864iC648E61B4F3EF4B2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="xiangzhu_1-1718966305318.png" alt="xiangzhu_1-1718966305318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 10:43:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75324#M34932</guid>
      <dc:creator>xiangzhu</dc:creator>
      <dc:date>2024-06-21T10:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve job-level parameters in spark_python_task (not notebooks)</title>
      <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75342#M34937</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/72085"&gt;@xiangzhu&lt;/a&gt;&amp;nbsp;It looks like it's the same as in&amp;nbsp;&lt;A href="https://community.databricks.com/t5/data-engineering/use-job-parameters-in-scripts/td-p/75296" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/use-job-parameters-in-scripts/td-p/75296&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 11:54:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75342#M34937</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2024-06-21T11:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve job-level parameters in spark_python_task (not notebooks)</title>
      <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75515#M34972</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79106"&gt;@daniel_sahal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Yes, I have the same question as the thread you mentioned, but argparse doesn't work for job level parameters; it only works for task level parameters.&lt;/P&gt;&lt;P&gt;The Databricks doc is minimal at this level and only says that job level parameters will be propagated to tasks. Nothing more.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:12:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75515#M34972</guid>
      <dc:creator>xiangzhu</dc:creator>
      <dc:date>2024-06-23T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve job-level parameters in spark_python_task (not notebooks)</title>
      <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75516#M34973</link>
      <description>&lt;P&gt;During this weekend, I found a workaround by leveraging the databaricks jobs api.&lt;/P&gt;&lt;P&gt;It works but I must provide credentials, whereas I'm looking forward to a solution without credentials since I'm already in a job run.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:18:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75516#M34973</guid>
      <dc:creator>xiangzhu</dc:creator>
      <dc:date>2024-06-23T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve job-level parameters in spark_python_task (not notebooks)</title>
      <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75518#M34975</link>
      <description>&lt;P&gt;I rechecked your answner in another thread and sorry I haven't seen `&lt;SPAN&gt;{{job.parameters.[name]}}`, I will try it in the coming days.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:24:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75518#M34975</guid>
      <dc:creator>xiangzhu</dc:creator>
      <dc:date>2024-06-23T18:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve job-level parameters in spark_python_task (not notebooks)</title>
      <link>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75596#M35000</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79106"&gt;@daniel_sahal&lt;/a&gt;&amp;nbsp;just tested&amp;nbsp;&lt;SPAN&gt;{{job.parameters.[name]}}, it works, thanks again !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:08:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/retrieve-job-level-parameters-in-spark-python-task-not-notebooks/m-p/75596#M35000</guid>
      <dc:creator>xiangzhu</dc:creator>
      <dc:date>2024-06-24T14:08:47Z</dc:date>
    </item>
  </channel>
</rss>

