<?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>question How do I set log level of namenode to DEBUG? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243768#M205566</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="103423-hadoop-root-loggerpng.jpg" style="width: 562px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/13429i5A68CD3F6E6BBE46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="103423-hadoop-root-loggerpng.jpg" alt="103423-hadoop-root-loggerpng.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the picture I attached to this post you can see my current log level value. This does not work. In /var/log/hadoop/hdfs/hadoop-hdfs-namenode-sandbox-hdp.hortonworks.com.log I can only see INFO and WARN messages.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 21:40:08 GMT</pubDate>
    <dc:creator>paulpaul1076</dc:creator>
    <dc:date>2019-08-17T21:40:08Z</dc:date>
    <item>
      <title>How do I set log level of namenode to DEBUG?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243768#M205566</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="103423-hadoop-root-loggerpng.jpg" style="width: 562px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/13429i5A68CD3F6E6BBE46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="103423-hadoop-root-loggerpng.jpg" alt="103423-hadoop-root-loggerpng.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the picture I attached to this post you can see my current log level value. This does not work. In /var/log/hadoop/hdfs/hadoop-hdfs-namenode-sandbox-hdp.hortonworks.com.log I can only see INFO and WARN messages.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 21:40:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243768#M205566</guid>
      <dc:creator>paulpaul1076</dc:creator>
      <dc:date>2019-08-17T21:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set log level of namenode to DEBUG?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243769#M205567</link>
      <description>&lt;P&gt;&lt;A href="@Pavel Orekhov"&gt;&lt;EM&gt;@Pavel Orekhov&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You can change the log level while logged on as hdfs with the below steps, you don't need to restart the namenode&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Get the current log level&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$ hadoop daemonlog -getlevel {namenode_host}:50070 BlockStateChange &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Connecting to &lt;A href="http://{namenode_host}:50070/logLevel?log=BlockStateChange" target="_blank"&gt;http://{namenode_host}:50070/logLevel?log=BlockStateChange&lt;/A&gt; 
Submitted Log Name: BlockStateChange 
Log Class: org.apache.commons.logging.impl.Log4JLogger 
Effective Level: INFO&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Change to DEBUG&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$ hadoop daemonlog -setlevel {namenode_host}:50070 BlockStateChange DEBUG &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Connecting to &lt;A href="http://{namenode_host}:50070/logLevel?log=BlockStateChange&amp;amp;level=DEBUG" target="_blank"&gt;http://{namenode_host}:50070/logLevel?log=BlockStateChange&amp;amp;level=DEBUG&lt;/A&gt; 
Submitted Log Name: BlockStateChange 
Log Class: org.apache.commons.logging.impl.Log4JLogger 
Submitted Level: DEBUG 
Setting Level to DEBUG ... 
Effective Level: DEBUG&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Validate DEBUG mode&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$ hadoop daemonlog -getlevel {namenode_host}:50070 BlockStateChange &lt;/PRE&gt;&lt;P&gt;&lt;B&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/B&gt;&lt;/P&gt;&lt;PRE&gt;Connecting to &lt;A href="http://{namenode_host}:50070/logLevel?log=BlockStateChange" target="_blank"&gt;http://{namenode_host}:50070/logLevel?log=BlockStateChange&lt;/A&gt; 
Submitted Log Name: BlockStateChange Log 
Class: org.apache.commons.logging.impl.Log4JLogger 
Effective Level: DEBUG&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;You should be able to notice the logging level in namenode.log has been updated, without restarting the service. After finishing your diagnostics you can reset the logging level back to INFO &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Reset to INFO&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$ hadoop daemonlog -setlevel {namenode_host}:50070 BlockStateChange INFO &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Connecting to &lt;A href="http://{namenode_host}:50070/logLevel?log=BlockStateChange&amp;amp;level=INFO" target="_blank"&gt;http://{namenode_host}:50070/logLevel?log=BlockStateChange&amp;amp;level=INFO&lt;/A&gt; 
Submitted Log Name: BlockStateChange 
Log Class: org.apache.commons.logging.impl.Log4JLogger 
Submitted Level: INFO 
Setting Level to INFO ... 
Effective Level: INFO &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Validate INFO &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$ hadoop daemonlog -getlevel {namenode_host}:50070 BlockStateChange &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Connecting to &lt;A href="http://{namenode_host}:50070/logLevel?log=BlockStateChange" target="_blank"&gt;http://{namenode_host}:50070/logLevel?log=BlockStateChange&lt;/A&gt; 
Submitted Log Name: BlockStateChange 
Log Class: org.apache.commons.logging.impl.Log4JLogger 
Effective Level: INFO&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;There you go &lt;BR /&gt;&lt;I&gt;&lt;EM&gt;If you found this answer addressed your question, please take a moment to log 
in and click the "&lt;STRONG&gt;accept&lt;/STRONG&gt;" link on the answer.&lt;/EM&gt;&lt;/I&gt;&lt;/EM&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 07:02:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243769#M205567</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-02-08T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set log level of namenode to DEBUG?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243770#M205568</link>
      <description>&lt;P&gt;Hey, thanks so much!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 19:08:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/243770#M205568</guid>
      <dc:creator>paulpaul1076</dc:creator>
      <dc:date>2019-02-08T19:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set log level of namenode to DEBUG?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/303772#M221703</link>
      <description>&lt;P&gt;Can you please help here. When I give "-protocol https", getting below error&lt;BR /&gt;&lt;BR /&gt;Connecting to https://HOST:PORT/logLevel?log=BlockStateChange&lt;BR /&gt;Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://HOST:PORT/logLevel?log=BlockStateChange&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894" target="_blank"&gt;www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492" target="_blank"&gt;www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263" target="_blank"&gt;www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263&lt;/A&gt;)&lt;BR /&gt;at org.apache.hadoop.log.LogLevel$CLI.process(LogLevel.java:297)&lt;BR /&gt;at org.apache.hadoop.log.LogLevel$CLI.doGetLevel(LogLevel.java:234)&lt;BR /&gt;at org.apache.hadoop.log.LogLevel$CLI.sendLogLevelRequest(LogLevel.java:127)&lt;BR /&gt;at org.apache.hadoop.log.LogLevel$CLI.run(LogLevel.java:110)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)&lt;BR /&gt;at org.apache.hadoop.log.LogLevel.main(LogLevel.java:72)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 18:50:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-set-log-level-of-namenode-to-DEBUG/m-p/303772#M221703</guid>
      <dc:creator>nirmal_106</dc:creator>
      <dc:date>2020-09-30T18:50:59Z</dc:date>
    </item>
  </channel>
</rss>

