<?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 Zookeeper log file not rotated in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134777#M31639</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using the below hadoop version. Most of the time the zookeeper log file zookeeper.out grows so large around GBs and doesn't get rotated. Let us know the possible solutions.&lt;/P&gt;&lt;P&gt;Hadoop 2.7.1.2.3.2.0-2950
Subversion git@github.com:hortonworks/hadoop.git -r 5cc60e0003e33aa98205f18bccaeaf36cb193c1c
Compiled by jenkins on 2015-09-30T18:08Z
Compiled with protoc 2.5.0
From source with checksum 69a3bf8c667267c2c252a54fbbf23d
This command was run using /usr/hdp/2.3.2.0-2950/hadoop/lib/hadoop-common-2.7.1.2.3.2.0-2950.jar&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkadesh S&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:24:48 GMT</pubDate>
    <dc:creator>vsivalingam</dc:creator>
    <dc:date>2022-09-16T10:24:48Z</dc:date>
    <item>
      <title>Zookeeper log file not rotated</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134777#M31639</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using the below hadoop version. Most of the time the zookeeper log file zookeeper.out grows so large around GBs and doesn't get rotated. Let us know the possible solutions.&lt;/P&gt;&lt;P&gt;Hadoop 2.7.1.2.3.2.0-2950
Subversion git@github.com:hortonworks/hadoop.git -r 5cc60e0003e33aa98205f18bccaeaf36cb193c1c
Compiled by jenkins on 2015-09-30T18:08Z
Compiled with protoc 2.5.0
From source with checksum 69a3bf8c667267c2c252a54fbbf23d
This command was run using /usr/hdp/2.3.2.0-2950/hadoop/lib/hadoop-common-2.7.1.2.3.2.0-2950.jar&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkadesh S&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:24:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134777#M31639</guid>
      <dc:creator>vsivalingam</dc:creator>
      <dc:date>2022-09-16T10:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper log file not rotated</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134778#M31640</link>
      <description>&lt;P&gt;The zookeeper "*.out" log is controlled by the "appender.CONSOLE" .  Console appenders does not have rolling feature available in it.    So you have following options:&lt;/P&gt;&lt;P&gt;1. Try using the OS utilities like "logrotate" to rotate the out log of zokeeper.&lt;/P&gt;&lt;P&gt;2. Change the log level of CONSOLE appender to ERROR/WARNING &lt;/P&gt;&lt;PRE&gt;log4j.rootLogger=ERROR, CONSOLE&lt;/PRE&gt;&lt;P&gt;3. Other wise switch to "ROLLINGFILE" instead of CONSOLE file appender.&lt;/P&gt;&lt;PRE&gt;log4j.rootLogger=INFO, ROLLINGFILE
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log &lt;/PRE&gt;&lt;P&gt;How ever it will be good to know why the zookeeper logs are growing so much ? Do you see a repeated warning/error?   Or you see only INFO messages are filling the .out log ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:05:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134778#M31640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-13T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper log file not rotated</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134779#M31641</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3823/joysensharma.html" nodeid="3823"&gt;@Joy&lt;/A&gt; There are not much error or warning. Most of it is INFO is getting printed as below.&lt;/P&gt;&lt;P&gt;INFO  [WorkerReceiver[myid=1]:FastLeaderElection@597] - Notification: 1 (message format version),&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:19:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134779#M31641</guid>
      <dc:creator>vsivalingam</dc:creator>
      <dc:date>2016-06-13T15:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper log file not rotated</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134780#M31642</link>
      <description>&lt;P&gt;In that case the best option will be to switch to "ROLLINGFILE"  as it has the capability to roll&lt;/P&gt;&lt;PRE&gt;log4j.rootLogger=INFO, ROLLINGFILE
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log 
log4j.appender.ROLLINGFILE.MaxFileSize=10MB
log4j.appender.ROLLINGFILE.MaxBackupIndex=10
&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:47:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-log-file-not-rotated/m-p/134780#M31642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-13T15:47:54Z</dc:date>
    </item>
  </channel>
</rss>

