<?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: how to specify the runtime version for serverless job in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122015#M46626</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/86174"&gt;@GeKo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're correct that serverless clusters typically default to the latest runtime version, but you can specify a particular runtime version for your jobs.&lt;BR /&gt;The exact method depends on your platform, but here are the common approaches:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Databricks (Most Common for Asset Bundles)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;In your bundle configuration (databricks.yml or job definition):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lingareddy_Alva_0-1750177548694.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17577i438DFF1A9B39C1A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lingareddy_Alva_0-1750177548694.png" alt="lingareddy_Alva_0-1750177548694.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;For serverless compute specifically:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lingareddy_Alva_1-1750177617393.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17578iE731DA87E14B8541/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lingareddy_Alva_1-1750177617393.png" alt="lingareddy_Alva_1-1750177617393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2025 16:27:09 GMT</pubDate>
    <dc:creator>lingareddy_Alva</dc:creator>
    <dc:date>2025-06-17T16:27:09Z</dc:date>
    <item>
      <title>how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122004#M46622</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;if I understood correctly.... using a serverless cluster comes always with the latest runtime version, by default.&lt;/P&gt;&lt;P&gt;Now I need to stick to e.g. runtime version 15.4 for a certain job, which gets deployed via asset bundles. How do I specify/configure the job, so that the serverless cluster provides runtime 15.4 ?&lt;BR /&gt;&lt;BR /&gt;any help highly apprecited&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;#serverless #assetbundles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 15:16:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122004#M46622</guid>
      <dc:creator>GeKo</dc:creator>
      <dc:date>2025-06-17T15:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122015#M46626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/86174"&gt;@GeKo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're correct that serverless clusters typically default to the latest runtime version, but you can specify a particular runtime version for your jobs.&lt;BR /&gt;The exact method depends on your platform, but here are the common approaches:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Databricks (Most Common for Asset Bundles)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;In your bundle configuration (databricks.yml or job definition):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lingareddy_Alva_0-1750177548694.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17577i438DFF1A9B39C1A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lingareddy_Alva_0-1750177548694.png" alt="lingareddy_Alva_0-1750177548694.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;For serverless compute specifically:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lingareddy_Alva_1-1750177617393.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17578iE731DA87E14B8541/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lingareddy_Alva_1-1750177617393.png" alt="lingareddy_Alva_1-1750177617393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 16:27:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122015#M46626</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2025-06-17T16:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122031#M46630</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/86174"&gt;@GeKo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Serverless versions behave a bit differently than classic runtime versions. With serverless you no longer have control over which cluster runtime is used as it's continuously updated, you do however have control over which API to target and what your base environment looks like by setting the environment version. &lt;A href="https://docs.databricks.com/aws/en/release-notes/serverless/environment-version/" target="_blank"&gt;Take a look at the release notes for serverless versions here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For notebooks, you need to define this environment directly in the notebook even when they're scheduled to run in jobs. &lt;A href="https://docs.databricks.com/aws/en/compute/serverless/dependencies" target="_blank"&gt;You can see how to do that here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For non notebook tasks, here's an example of specifying the environment for a task:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    example_job:
      name: example job
      tasks:
        - task_key: example_task
          ...
          environment_key: some_environment_key
      environments:
        - environment_key: some_environment_key
          spec:
            client: "2"
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Jun 2025 18:25:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122031#M46630</guid>
      <dc:creator>jesseryoung</dc:creator>
      <dc:date>2025-06-17T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122033#M46632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/24053"&gt;@lingareddy_Alva&lt;/a&gt;&amp;nbsp;-&amp;nbsp; The second DAB example you provided is not valid. I believe the LLM you used to generate this code may have hallucinated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 18:39:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122033#M46632</guid>
      <dc:creator>jesseryoung</dc:creator>
      <dc:date>2025-06-17T18:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122103#M46654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/24053"&gt;@lingareddy_Alva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;many thanks for answering!&lt;/P&gt;&lt;P&gt;The serverless "solution" you provided is unfortunately just a plain response from chatgpt/gemini/etc .... I tried that as well and the AI response is pure nonsense .... as also commented by jesseryoung&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 10:03:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122103#M46654</guid>
      <dc:creator>GeKo</dc:creator>
      <dc:date>2025-06-18T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122104#M46655</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/32113"&gt;@jesseryoung&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;that's exactly what I was looking for&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":ok_hand:"&gt;👌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 10:05:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122104#M46655</guid>
      <dc:creator>GeKo</dc:creator>
      <dc:date>2025-06-18T10:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122126#M46665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/32113"&gt;@jesseryoung&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;one quick followup question. I am playing aroung with the "environment" property in job config, and I have the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    serverless_testjob:
      name: serverless_testjob
      tasks:
        - task_key: sample_script_15_4
          spark_python_task:
            python_file: /Workspace/Users/gerd/get_version.py
          environment_key: serverless_15_4
        - task_key: sample_script_14_3
          spark_python_task:
            python_file: /Workspace/Users/gerd/get_version.py
          environment_key: serverless_14_3
      queue:
        enabled: true
      environments:
        - environment_key: serverless_14_3
          spec:
            client: "1"
        - environment_key: serverless_15_4
          spec:
            client: "2"
      performance_target: STANDARD&lt;/LI-CODE&gt;&lt;P&gt;both tasks are executing the same python script, but with different environments. The script itself is pretty simple and looks like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sys
from pyspark.sql import SparkSession

python_version = sys.version
print(f"The current Python version is: {python_version}")

spark = SparkSession.builder.getOrCreate()
spark_version = spark.version
print(f"Apache Spark Version: {spark_version}")

current_version_info = spark.sql("SELECT current_version()").collect()[0][0]
dbr_version = current_version_info['dbr_version']
print(f"Databricks Runtime Version: {dbr_version}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am wondering why both tasks output for "Databricks Runtime Version" is =&amp;gt; "Databricks Runtime Version: 16.4.x-photon-scala2.12" ?!?!&lt;/P&gt;&lt;P&gt;According the the serverless release notes regarding environments (&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/release-notes/serverless/environment-version/" target="_blank" rel="noopener"&gt;LINK&lt;/A&gt;), I expected a different runtime for each environment. The output of both tasks only show differences in the used python version :&lt;/P&gt;&lt;P&gt;output task&amp;nbsp;&lt;STRONG&gt;sample_script_15_4&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The current Python version is: 3.11.10 (main, Sep  7 2024, 18:35:41) [GCC 11.4.0]
Apache Spark Version: 3.5.2
Databricks Runtime Version: 16.4.x-photon-scala2.12&lt;/LI-CODE&gt;&lt;P&gt;output task &lt;STRONG&gt;sample_script_14_3&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The current Python version is: 3.10.12 (main, Feb  4 2025, 14:57:36) [GCC 11.4.0]
Apache Spark Version: 3.5.2
Databricks Runtime Version: 16.4.x-photon-scala2.12&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This combination of versions in the outputs doesn't make any sense to me. I mean...I expected a different python version in the different environments, but runtime 16.4 is unexpected and should be contained only in environment version "3".&lt;/P&gt;&lt;P&gt;What is going wrong here ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 13:29:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122126#M46665</guid>
      <dc:creator>GeKo</dc:creator>
      <dc:date>2025-06-18T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122141#M46671</link>
      <description>&lt;P&gt;With serverless, changing the "version" doesn't actually change the cluster runtime, it just makes sure that your code doesn't break over time while allowing Databricks to keep the cluster runtime up to date with the latest changes. Serverless makes use of &lt;A href="https://www.databricks.com/blog/2023/04/18/spark-connect-available-apache-spark.html" target="_blank"&gt;Spark Connect&lt;/A&gt;&amp;nbsp;to break up the cluster runtime dependencies (DBR) and client dependencies (serverless environments.)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 15:15:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122141#M46671</guid>
      <dc:creator>jesseryoung</dc:creator>
      <dc:date>2025-06-18T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify the runtime version for serverless job</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122145#M46674</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 15:35:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-specify-the-runtime-version-for-serverless-job/m-p/122145#M46674</guid>
      <dc:creator>GeKo</dc:creator>
      <dc:date>2025-06-18T15:35:47Z</dc:date>
    </item>
  </channel>
</rss>

