<?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: Insert query fails with error &amp;quot;The query is not executed because it tries to launch ***** tasks in a single stage, while maximum allowed tasks one query can launch is 100000; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/insert-query-fails-with-error-quot-the-query-is-not-executed/m-p/18688#M12440</link>
    <description>&lt;P&gt;could you please increase the below config (at the cluster level) to a higher value or set it to zero  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.databricks.queryWatchdog.maxQueryTasks 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The spark config while it alleviates the issue.   &lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 19:21:57 GMT</pubDate>
    <dc:creator>shan_chandra</dc:creator>
    <dc:date>2022-06-04T19:21:57Z</dc:date>
    <item>
      <title>Insert query fails with error "The query is not executed because it tries to launch ***** tasks in a single stage, while maximum allowed tasks one query can launch is 100000;</title>
      <link>https://community.databricks.com/t5/data-engineering/insert-query-fails-with-error-quot-the-query-is-not-executed/m-p/18687#M12439</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Py4JJavaError: An error occurred while calling o236.sql. : org.apache.spark.SparkException: Job aborted. at org.apache.spark.sql.execution.datasources.FileFormatWriter$.write(FileFormatWriter.scala:201) at org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelationCommand.run(InsertIntoHadoopFsRelationCommand.scala:192) at 
Caused by: java.util.concurrent.ExecutionException: org.apache.spark.SparkException: The query is not executed because it tries to launch 390944 tasks in a single stage, while the maximum allowed tasks one query can launch is 100000; this limit can be modified with configuration parameter "spark.databricks.queryWatchdog.maxQueryTasks".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please find the summary of the error stack trace. could you please let us know how to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 19:11:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/insert-query-fails-with-error-quot-the-query-is-not-executed/m-p/18687#M12439</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2022-06-04T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insert query fails with error "The query is not executed because it tries to launch ***** tasks in a single stage, while maximum allowed tasks one query can launch is 100000;</title>
      <link>https://community.databricks.com/t5/data-engineering/insert-query-fails-with-error-quot-the-query-is-not-executed/m-p/18688#M12440</link>
      <description>&lt;P&gt;could you please increase the below config (at the cluster level) to a higher value or set it to zero  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.databricks.queryWatchdog.maxQueryTasks 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The spark config while it alleviates the issue.   &lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 19:21:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/insert-query-fails-with-error-quot-the-query-is-not-executed/m-p/18688#M12440</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2022-06-04T19:21:57Z</dc:date>
    </item>
  </channel>
</rss>

