<?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: get a &amp;quot;Py4JJavaError: An error occurred while calling o5082.csv.&amp;quot; when trying to save to csv file. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24041#M16674</link>
    <description>&lt;P&gt;Hi @Laura Blancarte​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What format is your "output" dataframe? Have you try to run something like this? output.coalesce(1).write.option("header","true").format("csv").save("path_to_location")&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 22:17:02 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2022-04-25T22:17:02Z</dc:date>
    <item>
      <title>get a "Py4JJavaError: An error occurred while calling o5082.csv." when trying to save to csv file.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24039#M16672</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm trying to save a dataframe  to csv  with the code below:&lt;/P&gt;&lt;P&gt;output.coalesce(1).write.mode('overwrite').option('header', 'true').csv(tmp_file_path)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it get "Py4JJavaError: An error occurred while calling o5082.csv." error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2022-03-31 at 17.33.13"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1977i9C5B78F11319DDBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-03-31 at 17.33.13" alt="Screenshot 2022-03-31 at 17.33.13" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 16:35:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24039#M16672</guid>
      <dc:creator>laus</dc:creator>
      <dc:date>2022-03-31T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: get a "Py4JJavaError: An error occurred while calling o5082.csv." when trying to save to csv file.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24041#M16674</link>
      <description>&lt;P&gt;Hi @Laura Blancarte​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What format is your "output" dataframe? Have you try to run something like this? output.coalesce(1).write.option("header","true").format("csv").save("path_to_location")&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 22:17:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24041#M16674</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-04-25T22:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: get a "Py4JJavaError: An error occurred while calling o5082.csv." when trying to save to csv file.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24042#M16675</link>
      <description>&lt;P&gt;Hi @Laura Blancarte​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Do you still need help or you were able to find a solution to your question? if my previous response helped you to resolve your questions, please mark it as best.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 17:27:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24042#M16675</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-05-10T17:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: get a "Py4JJavaError: An error occurred while calling o5082.csv." when trying to save to csv file.</title>
      <link>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24043#M16676</link>
      <description>&lt;P&gt;Only just seen this but your had used your solution in other scripts and it works!&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 18:24:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-a-quot-py4jjavaerror-an-error-occurred-while-calling-o5082/m-p/24043#M16676</guid>
      <dc:creator>laus</dc:creator>
      <dc:date>2022-05-10T18:24:12Z</dc:date>
    </item>
  </channel>
</rss>

