<?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 Re: zookpers log4j + Advanced zookeeper-log4j + how to get trace logs in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235620#M197433</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;DEBUG/TRACE logging consumes much disk space. Hence it is better to disable them once you have collected enough race/debug logs for your troubleshooting purpose..&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 08:29:58 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-07-17T08:29:58Z</dc:date>
    <item>
      <title>zookpers log4j + Advanced zookeeper-log4j + how to get trace logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235618#M197431</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;under &lt;EM&gt;/var/log/zookeeper&lt;/EM&gt; , we have the zookeeper logs , as the following&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;-rw-r--r-- 1 zookeeper hadoop 104857712 Jul &amp;nbsp;5 15:54 zookeeper-zookeeper-server-master.sys87.com.log.1
-rw-r--r-- 1 zookeeper hadoop &amp;nbsp; &amp;nbsp; &amp;nbsp; 177 Jul 16 11:57 zookeeper-zookeeper-server-master.sys87.com.out
-rw-r--r-- 1 zookeeper hadoop &amp;nbsp;66358998 Jul 16 23:15 zookeeper-zookeeper-server-master.sys87.com.log&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the problem is that we get only the &lt;STRONG&gt;INFO &lt;/STRONG&gt;severity from the logs!&lt;/P&gt;&lt;P&gt;and when we set the TRCE severity , and restart the zookeeper service , then its not change the zookeeper log content to trace mode,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;can we get example of log4j for zookeeper ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;we suspect that our log4j isn't configured properly&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 06:22:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235618#M197431</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-07-17T06:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: zookpers log4j + Advanced zookeeper-log4j + how to get trace logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235619#M197432</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;BR /&gt;Inside the &lt;/P&gt;&lt;P&gt;Ambari UI --&amp;gt; Zookeerper --&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; "Advanced zookeeper-log4j" you will find the zookeeper-log4j template.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Inside the template try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Change-1).  Change the rootLogger line and enable 'TRACEFILE' appender&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Comment the line:&lt;/P&gt;&lt;PRE&gt;#log4j.rootLogger=INFO, CONSOLE, ROLLINGFILE&lt;/PRE&gt;&lt;P&gt;And then uncomment the following line:&lt;/P&gt;&lt;PRE&gt;log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Change-2). Now inside the same template alter the line:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;PRE&gt;log4j.appender.TRACEFILE.File=zookeeper_trace.log
&lt;/PRE&gt;&lt;P&gt;TO&lt;/P&gt;&lt;PRE&gt;log4j.appender.TRACEFILE.File={&lt;!-- --&gt;{zk_log_dir}}/zookeeper_trace.log&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Now restart Zookeeper.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then check the log "zookeeper_trace.log"&lt;/P&gt;&lt;PRE&gt;# tail -f /var/log/zookeeper/zookeeper_trace.log&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 08:27:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235619#M197432</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-07-17T08:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: zookpers log4j + Advanced zookeeper-log4j + how to get trace logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235620#M197433</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;DEBUG/TRACE logging consumes much disk space. Hence it is better to disable them once you have collected enough race/debug logs for your troubleshooting purpose..&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 08:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zookpers-log4j-Advanced-zookeeper-log4j-how-to-get-trace/m-p/235620#M197433</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-07-17T08:29:58Z</dc:date>
    </item>
  </channel>
</rss>

