<?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 Asset Bundles Scala in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/asset-bundles-scala/m-p/59504#M31430</link>
    <description>&lt;P&gt;Do asset bundles support Scala notebooks? I am trying to run a simple job that uses Scala notebook and getting an error: "&lt;SPAN class=""&gt;run failed with error message Your administrator has only allowed sql and python commands on this cluster. This execution contained at least one disallowed language."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can run the same notebook as a regular job. Do I need to provide some special cluster configuration when configuring the job?&lt;BR /&gt;&lt;BR /&gt;Currently I just have this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;job_clusters&lt;/SPAN&gt;:&lt;BR /&gt;  - &lt;SPAN&gt;job_cluster_key&lt;/SPAN&gt;: job_cluster&lt;BR /&gt;    &lt;SPAN&gt;new_cluster&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;spark_version&lt;/SPAN&gt;: 13.3.x-scala2.12&lt;BR /&gt;      &lt;SPAN&gt;node_type_id&lt;/SPAN&gt;: i3.xlarge&lt;BR /&gt;      &lt;SPAN&gt;autoscale&lt;/SPAN&gt;:&lt;BR /&gt;          &lt;SPAN&gt;min_workers&lt;/SPAN&gt;: 1&lt;BR /&gt;          &lt;SPAN&gt;max_workers&lt;/SPAN&gt;: 4&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Feb 2024 18:11:28 GMT</pubDate>
    <dc:creator>VitaliiK</dc:creator>
    <dc:date>2024-02-06T18:11:28Z</dc:date>
    <item>
      <title>Asset Bundles Scala</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-scala/m-p/59504#M31430</link>
      <description>&lt;P&gt;Do asset bundles support Scala notebooks? I am trying to run a simple job that uses Scala notebook and getting an error: "&lt;SPAN class=""&gt;run failed with error message Your administrator has only allowed sql and python commands on this cluster. This execution contained at least one disallowed language."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can run the same notebook as a regular job. Do I need to provide some special cluster configuration when configuring the job?&lt;BR /&gt;&lt;BR /&gt;Currently I just have this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;job_clusters&lt;/SPAN&gt;:&lt;BR /&gt;  - &lt;SPAN&gt;job_cluster_key&lt;/SPAN&gt;: job_cluster&lt;BR /&gt;    &lt;SPAN&gt;new_cluster&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;spark_version&lt;/SPAN&gt;: 13.3.x-scala2.12&lt;BR /&gt;      &lt;SPAN&gt;node_type_id&lt;/SPAN&gt;: i3.xlarge&lt;BR /&gt;      &lt;SPAN&gt;autoscale&lt;/SPAN&gt;:&lt;BR /&gt;          &lt;SPAN&gt;min_workers&lt;/SPAN&gt;: 1&lt;BR /&gt;          &lt;SPAN&gt;max_workers&lt;/SPAN&gt;: 4&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:11:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-scala/m-p/59504#M31430</guid>
      <dc:creator>VitaliiK</dc:creator>
      <dc:date>2024-02-06T18:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles Scala</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-scala/m-p/59546#M31439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/99425"&gt;@VitaliiK&lt;/a&gt;,Thanks for bringing up your concerns; I am always happy to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The error means that the cluster is configured to only allow SQL and Python languages to be used in notebooks and the notebook you are trying to run contains a Scala language that is not allowed.&lt;/P&gt;
&lt;P&gt;To solve this issue, you can either modify the cluster configuration to allow the language you are trying to use or modify the notebook to only use the allowed languages. &lt;BR /&gt;To modify the cluster configuration:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the cluster configuration page in your workspace.&lt;/LI&gt;
&lt;LI&gt;Click Edit.&lt;/LI&gt;
&lt;LI&gt;Expand Advanced Options.&lt;BR /&gt;In the Spark Config field, add the following configuration: ‘spark.databricks.allowedLanguages python,r,scala,sql’&lt;/LI&gt;
&lt;LI&gt;Click Confirm and Restart. This will allow the use of Python, R, Scala and SQL in notebooks on the cluster.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Also please check the cluster access mode to know the supported language on the cluster:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/compute/configure.html#access-modes" target="_blank"&gt;https://docs.databricks.com/en/compute/configure.html#access-modes&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Leave a like if this helps; follow-ups are appreciated.&lt;BR /&gt;Kudos&lt;/P&gt;
&lt;P&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 05:46:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-scala/m-p/59546#M31439</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2024-02-07T05:46:18Z</dc:date>
    </item>
  </channel>
</rss>

