<?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 PySparkRuntimeError: [CONTEXT_ONLY_VALID_ON_DRIVER] It appears that you are attempting to reference in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pysparkruntimeerror-context-only-valid-on-driver-it-appears-that/m-p/84392#M37187</link>
    <description>&lt;P&gt;Getting The above error for this line&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class=""&gt;result_df&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;rdd&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;foreachPartition&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;process_partition&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 13:06:40 GMT</pubDate>
    <dc:creator>pinaki1</dc:creator>
    <dc:date>2024-08-27T13:06:40Z</dc:date>
    <item>
      <title>PySparkRuntimeError: [CONTEXT_ONLY_VALID_ON_DRIVER] It appears that you are attempting to reference</title>
      <link>https://community.databricks.com/t5/data-engineering/pysparkruntimeerror-context-only-valid-on-driver-it-appears-that/m-p/84392#M37187</link>
      <description>&lt;P&gt;Getting The above error for this line&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class=""&gt;result_df&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;rdd&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;foreachPartition&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;process_partition&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:06:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pysparkruntimeerror-context-only-valid-on-driver-it-appears-that/m-p/84392#M37187</guid>
      <dc:creator>pinaki1</dc:creator>
      <dc:date>2024-08-27T13:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: PySparkRuntimeError: [CONTEXT_ONLY_VALID_ON_DRIVER] It appears that you are attempting to refere</title>
      <link>https://community.databricks.com/t5/data-engineering/pysparkruntimeerror-context-only-valid-on-driver-it-appears-that/m-p/92179#M38379</link>
      <description>&lt;P&gt;The error message "CONTEXT_ONLY_VALID_ON_DRIVER" indicates that you are attempting to reference &lt;CODE&gt;SparkContext&lt;/CODE&gt; from a broadcast variable, action, or transformation. &lt;CODE&gt;SparkContext&lt;/CODE&gt; can only be used on the driver, not in code that runs on workers. This is a common issue in PySpark where certain operations are mistakenly attempted on worker nodes instead of the driver node&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 18:37:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pysparkruntimeerror-context-only-valid-on-driver-it-appears-that/m-p/92179#M38379</guid>
      <dc:creator>Pradeep54</dc:creator>
      <dc:date>2024-09-28T18:37:35Z</dc:date>
    </item>
  </channel>
</rss>

