<?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: RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast variable, action, or transformation. SparkContext can only be used on the driver, not in code that it run on workers. For more information, see SPARK-5063. in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/runtimeerror-it-appears-that-you-are-attempting-to-reference/m-p/3470#M6</link>
    <description>&lt;P&gt;Hi @Nikhil Gajghate​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 06:01:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-16T06:01:38Z</dc:date>
    <item>
      <title>RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast variable, action, or transformation. SparkContext can only be used on the driver, not in code that it run on workers. For more information, see SPARK-5063.</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/runtimeerror-it-appears-that-you-are-attempting-to-reference/m-p/3469#M5</link>
      <description>&lt;P&gt;I created the following model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/110i3CC320279D17474C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which calls &lt;I&gt;get_identifier_information()&lt;/I&gt; which is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/106iFA90C9BCB316D86C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how I log the model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/111iF4AA806E7CE7E794/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is the error I am running into:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast variable, action, or transformation. SparkContext can only be used on the driver, not in code that it run on workers. For more information, see SPARK-5063.&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>Thu, 20 Mar 2025 17:07:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/runtimeerror-it-appears-that-you-are-attempting-to-reference/m-p/3469#M5</guid>
      <dc:creator>Nikhil3107</dc:creator>
      <dc:date>2025-03-20T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast variable, action, or transformation. SparkContext can only be used on the driver, not in code that it run on workers. For more information, see SPARK-5063.</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/runtimeerror-it-appears-that-you-are-attempting-to-reference/m-p/3470#M6</link>
      <description>&lt;P&gt;Hi @Nikhil Gajghate​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:01:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/runtimeerror-it-appears-that-you-are-attempting-to-reference/m-p/3470#M6</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T06:01:38Z</dc:date>
    </item>
  </channel>
</rss>

