<?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 How do I change the log level in Databricks? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-i-change-the-log-level-in-databricks/m-p/20843#M14117</link>
    <description>&lt;P&gt;How can I change the log level of the Spark Driver and executor process? &lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 06:33:44 GMT</pubDate>
    <dc:creator>brickster_2018</dc:creator>
    <dc:date>2021-06-24T06:33:44Z</dc:date>
    <item>
      <title>How do I change the log level in Databricks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-change-the-log-level-in-databricks/m-p/20843#M14117</link>
      <description>&lt;P&gt;How can I change the log level of the Spark Driver and executor process? &lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 06:33:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-change-the-log-level-in-databricks/m-p/20843#M14117</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-24T06:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the log level in Databricks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-change-the-log-level-in-databricks/m-p/20844#M14118</link>
      <description>&lt;P&gt;&lt;B&gt;Change the log level of Driver:&lt;/B&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%scala 
&amp;nbsp;
spark.sparkContext.setLogLevel("DEBUG")
&amp;nbsp;
spark.sparkContext.setLogLevel("INFO")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Change the log level of a particular package in Driver logs:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%scala
&amp;nbsp;
org.apache.log4j.Logger.getLogger("shaded.databricks.v20180920_b33d810.org.apache.hadoop.fs.azurebfs.services").setLevel(org.apache.log4j.Level.TRACE)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;B&gt;Change the log level in the executor &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sc.parallelize(Seq("")).foreachPartition(x =&amp;gt; {
  import org.apache.log4j.{LogManager, Level}
  import org.apache.commons.logging.LogFactory
&amp;nbsp;
  LogManager.getRootLogger().setLevel(Level.DEBUG)
  val log = LogFactory.getLog("EXECUTOR-LOG:")
  log.debug("START EXECUTOR DEBUG LOG LEVEL")
})&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://kb.databricks.com/clusters/set-executor-log-level.html" target="test_blank"&gt;https://kb.databricks.com/clusters/set-executor-log-level.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 06:47:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-change-the-log-level-in-databricks/m-p/20844#M14118</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-24T06:47:51Z</dc:date>
    </item>
  </channel>
</rss>

