<?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: ConnectException error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connectexception-error/m-p/27807#M19655</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi @Raymond_Hu,&lt;/P&gt;&lt;P&gt;This means that the driver crashed because of an OOM (Out of memory) exception and after that, it's not able to establish a new connection with the driver. Please try below options&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Try increasing driver-side memory and then retry.&lt;/LI&gt;&lt;LI&gt;You can look at the spark job dag which give you more info on data flow. &lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 17 Sep 2019 10:59:31 GMT</pubDate>
    <dc:creator>shyam_9</dc:creator>
    <dc:date>2019-09-17T10:59:31Z</dc:date>
    <item>
      <title>ConnectException error</title>
      <link>https://community.databricks.com/t5/data-engineering/connectexception-error/m-p/27806#M19654</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm using PySpark on Databricks and trying to pivot a 27753444 X 3 matrix. &lt;/P&gt;
&lt;P&gt;If I do it in Spark DataFrame:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;df = df.groupBy("A").pivot("B").avg("C")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it takes forever (after 2 hours and I canceled it).&lt;/P&gt;
&lt;P&gt;If I convert it to pandas dataframe and then pivot:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;pandas_df = pandas_df.pivot(index='A',columns='B',values='C').fillna(0)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It always gives me an error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ConnectException: Connection refused (Connection refused)
Error while obtaining a new communication channel 
ConnectException error: This is often caused by an OOM error that causes the connection to the Python REPL to be closed. Check your query's memory usage.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I've already increased memory of my clusters to 192 GB and it still doesn't work.&lt;/P&gt;
&lt;P&gt;Can someone help?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 20:25:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connectexception-error/m-p/27806#M19654</guid>
      <dc:creator>Raymond_Hu</dc:creator>
      <dc:date>2019-09-16T20:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectException error</title>
      <link>https://community.databricks.com/t5/data-engineering/connectexception-error/m-p/27807#M19655</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi @Raymond_Hu,&lt;/P&gt;&lt;P&gt;This means that the driver crashed because of an OOM (Out of memory) exception and after that, it's not able to establish a new connection with the driver. Please try below options&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Try increasing driver-side memory and then retry.&lt;/LI&gt;&lt;LI&gt;You can look at the spark job dag which give you more info on data flow. &lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:59:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connectexception-error/m-p/27807#M19655</guid>
      <dc:creator>shyam_9</dc:creator>
      <dc:date>2019-09-17T10:59:31Z</dc:date>
    </item>
  </channel>
</rss>

