<?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: The spark driver has stopped unexpectedly and is restarting. Your notebook will be automatically reattached. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5258#M1725</link>
    <description>&lt;P&gt;@Jose Gonzalez​&amp;nbsp; Where can I find GC logs ? and what specifically I look for in log4j and GC logs ?&lt;/P&gt;&lt;P&gt;I want to understand why my driver is consuming that much RAM resources when jobs executed it must free the memory itself and let the other jobs use that memory.&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 12:50:35 GMT</pubDate>
    <dc:creator>JKR</dc:creator>
    <dc:date>2023-05-04T12:50:35Z</dc:date>
    <item>
      <title>The spark driver has stopped unexpectedly and is restarting. Your notebook will be automatically reattached.</title>
      <link>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5256#M1723</link>
      <description>&lt;P&gt;Getting below error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Context: Using Databricks shared interactive cluster for scheduled run multiple parallel jobs at the same time after every 5 mins. When I check Ganglia, driver node's memory reaches almost max and then restart of driver happens and the same process repeats. I'm not using any of the below operations: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;collect() operator, which brings a large amount of data to the driver.&lt;/LI&gt;&lt;LI&gt;Conversion of a large DataFrame to Pandas DataFrame using the toPandas() function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.OutOfMemoryError: unable to create new native thread&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.start0(Native Method)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.start(Thread.java:719)&lt;/P&gt;&lt;P&gt;	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)&lt;/P&gt;&lt;P&gt;	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1367)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.ExecutionContextImpl.execute(ExecutionContextImpl.scala:24)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete(Promise.scala:372)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete$(Promise.scala:371)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Successful.onComplete(Promise.scala:379)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise.transform(Promise.scala:33)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise.transform$(Promise.scala:31)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Successful.transform(Promise.scala:379)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.Future.map(Future.scala:292)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.Future.map$(Future.scala:292)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Successful.map(Promise.scala:379)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.Future$.apply(Future.scala:659)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterKernelListener$BackgroundPollTask.start(JupyterKernelListener.scala:174)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterKernelListener.&amp;lt;init&amp;gt;(JupyterKernelListener.scala:340)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.$anonfun$startPython$1(JupyterDriverLocal.scala:708)&lt;/P&gt;&lt;P&gt;	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)&lt;/P&gt;&lt;P&gt;	at scala.util.Try$.apply(Try.scala:213)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.com$databricks$backend$daemon$driver$JupyterDriverLocal$$withRetry(JupyterDriverLocal.scala:663)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.startPython(JupyterDriverLocal.scala:680)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.&amp;lt;init&amp;gt;(JupyterDriverLocal.scala:403)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.PythonDriverWrapper.instantiateDriver(DriverWrapper.scala:781)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.DriverWrapper.setupRepl(DriverWrapper.scala:350)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.DriverWrapper.run(DriverWrapper.scala:246)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.run(Thread.java:750)&lt;/P&gt;&lt;P&gt;java.lang.OutOfMemoryError: unable to create new native thread&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.start0(Native Method)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.start(Thread.java:719)&lt;/P&gt;&lt;P&gt;	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)&lt;/P&gt;&lt;P&gt;	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1367)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.ExecutionContextImpl.execute(ExecutionContextImpl.scala:24)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete(Promise.scala:372)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete$(Promise.scala:371)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Successful.onComplete(Promise.scala:379)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise.transform(Promise.scala:33)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise.transform$(Promise.scala:31)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Successful.transform(Promise.scala:379)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.Future.map(Future.scala:292)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.Future.map$(Future.scala:292)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.impl.Promise$KeptPromise$Successful.map(Promise.scala:379)&lt;/P&gt;&lt;P&gt;	at scala.concurrent.Future$.apply(Future.scala:659)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterKernelListener$BackgroundPollTask.start(JupyterKernelListener.scala:174)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterKernelListener.&amp;lt;init&amp;gt;(JupyterKernelListener.scala:340)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.$anonfun$startPython$1(JupyterDriverLocal.scala:708)&lt;/P&gt;&lt;P&gt;	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)&lt;/P&gt;&lt;P&gt;	at scala.util.Try$.apply(Try.scala:213)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.com$databricks$backend$daemon$driver$JupyterDriverLocal$$withRetry(JupyterDriverLocal.scala:663)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.startPython(JupyterDriverLocal.scala:680)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.JupyterDriverLocal.&amp;lt;init&amp;gt;(JupyterDriverLocal.scala:403)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.PythonDriverWrapper.instantiateDriver(DriverWrapper.scala:781)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.DriverWrapper.setupRepl(DriverWrapper.scala:350)&lt;/P&gt;&lt;P&gt;	at com.databricks.backend.daemon.driver.DriverWrapper.run(DriverWrapper.scala:246)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.run(Thread.java:750)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 23:57:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5256#M1723</guid>
      <dc:creator>JKR</dc:creator>
      <dc:date>2023-04-25T23:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: The spark driver has stopped unexpectedly and is restarting. Your notebook will be automatically reattached.</title>
      <link>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5257#M1724</link>
      <description>&lt;P&gt;please check the driver's logs, for example the log4j and the GC logs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 21:20:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5257#M1724</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2023-04-26T21:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: The spark driver has stopped unexpectedly and is restarting. Your notebook will be automatically reattached.</title>
      <link>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5258#M1725</link>
      <description>&lt;P&gt;@Jose Gonzalez​&amp;nbsp; Where can I find GC logs ? and what specifically I look for in log4j and GC logs ?&lt;/P&gt;&lt;P&gt;I want to understand why my driver is consuming that much RAM resources when jobs executed it must free the memory itself and let the other jobs use that memory.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:50:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-spark-driver-has-stopped-unexpectedly-and-is-restarting-your/m-p/5258#M1725</guid>
      <dc:creator>JKR</dc:creator>
      <dc:date>2023-05-04T12:50:35Z</dc:date>
    </item>
  </channel>
</rss>

