<?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 3.8.4 not logging in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/388866#M246805</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm running apache zookeeper 3.8.4.&lt;BR /&gt;File zookeeper.log does not get created.&lt;BR /&gt;Log files are empty except the following message:&lt;BR /&gt;&lt;BR /&gt;SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".&lt;BR /&gt;SLF4J: Defaulting to no-operation (NOP) logger implementation&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#StaticLoggerBinder" target="_blank" rel="noopener"&gt;http://www.slf4j.org/codes.html#StaticLoggerBinder&lt;/A&gt; for further details.&lt;BR /&gt;SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".&lt;BR /&gt;SLF4J: Defaulting to no-operation MDCAdapter implementation.&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#no_static_mdc_binder" target="_blank" rel="noopener"&gt;http://www.slf4j.org/codes.html#no_static_mdc_binder&lt;/A&gt; for further details.&lt;BR /&gt;&lt;BR /&gt;How can I configure zookeeper with logs working ?&lt;BR /&gt;&lt;BR /&gt;According to the links, this is due to slf4j not detecting logback.&lt;BR /&gt;&lt;BR /&gt;The process runs with the following options in the commandline (extract)&lt;BR /&gt;The classpath does seem to include slf4j and logback jars,&amp;nbsp;&lt;BR /&gt;as well as the conf directory containing logback.xml&lt;BR /&gt;&lt;BR /&gt;/apps/dis/java/jdk/bin/java&lt;BR /&gt;-Dzookeeper.log.dir=/apps/zookeeper/log&lt;BR /&gt;-Dzookeeper.log.file=zookeeper.log&lt;BR /&gt;-cp&lt;BR /&gt;...&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../lib/slf4j-api-1.7.30.jar:&lt;BR /&gt;...&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../lib/logback-core-1.2.13.jar:&lt;BR /&gt;...&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../lib/logback-classic-1.2.13.jar:&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../conf:&lt;BR /&gt;...&lt;BR /&gt;org.apache.zookeeper.server.quorum.QuorumPeerMain&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../conf/zoo.cfg&lt;BR /&gt;&lt;BR /&gt;The logback.xml file is in&amp;nbsp;&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../conf&lt;BR /&gt;with rollingfile and console appenders activated:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"&amp;gt;&lt;BR /&gt;&amp;lt;encoder&amp;gt;&lt;BR /&gt;&amp;lt;pattern&amp;gt;%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n&amp;lt;/pattern&amp;gt;&lt;BR /&gt;&amp;lt;/encoder&amp;gt;&lt;BR /&gt;&amp;lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&amp;gt;&lt;BR /&gt;&amp;lt;level&amp;gt;${zookeeper.console.threshold}&amp;lt;/level&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;&amp;lt;appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;BR /&gt;&amp;lt;File&amp;gt;${zookeeper.log.dir}/${zookeeper.log.file}&amp;lt;/File&amp;gt;&lt;BR /&gt;&amp;lt;encoder&amp;gt;&lt;BR /&gt;&amp;lt;pattern&amp;gt;%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n&amp;lt;/pattern&amp;gt;&lt;BR /&gt;&amp;lt;/encoder&amp;gt;&lt;BR /&gt;&amp;lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&amp;gt;&lt;BR /&gt;&amp;lt;level&amp;gt;${zookeeper.log.threshold}&amp;lt;/level&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&amp;gt;&lt;BR /&gt;&amp;lt;maxIndex&amp;gt;${zookeeper.log.maxbackupindex}&amp;lt;/maxIndex&amp;gt;&lt;BR /&gt;&amp;lt;FileNamePattern&amp;gt;${zookeeper.log.dir}/${zookeeper.log.file}.%i&amp;lt;/FileNamePattern&amp;gt;&lt;BR /&gt;&amp;lt;/rollingPolicy&amp;gt;&lt;BR /&gt;&amp;lt;triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&amp;gt;&lt;BR /&gt;&amp;lt;MaxFileSize&amp;gt;${zookeeper.log.maxfilesize}&amp;lt;/MaxFileSize&amp;gt;&lt;BR /&gt;&amp;lt;/triggeringPolicy&amp;gt;&lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;root level="INFO"&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="CONSOLE" /&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="ROLLINGFILE" /&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;All suggestions welcome.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 11:37:46 GMT</pubDate>
    <dc:creator>Alf015</dc:creator>
    <dc:date>2024-06-06T11:37:46Z</dc:date>
    <item>
      <title>Zookeeper 3.8.4 not logging</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/388866#M246805</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm running apache zookeeper 3.8.4.&lt;BR /&gt;File zookeeper.log does not get created.&lt;BR /&gt;Log files are empty except the following message:&lt;BR /&gt;&lt;BR /&gt;SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".&lt;BR /&gt;SLF4J: Defaulting to no-operation (NOP) logger implementation&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#StaticLoggerBinder" target="_blank" rel="noopener"&gt;http://www.slf4j.org/codes.html#StaticLoggerBinder&lt;/A&gt; for further details.&lt;BR /&gt;SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".&lt;BR /&gt;SLF4J: Defaulting to no-operation MDCAdapter implementation.&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#no_static_mdc_binder" target="_blank" rel="noopener"&gt;http://www.slf4j.org/codes.html#no_static_mdc_binder&lt;/A&gt; for further details.&lt;BR /&gt;&lt;BR /&gt;How can I configure zookeeper with logs working ?&lt;BR /&gt;&lt;BR /&gt;According to the links, this is due to slf4j not detecting logback.&lt;BR /&gt;&lt;BR /&gt;The process runs with the following options in the commandline (extract)&lt;BR /&gt;The classpath does seem to include slf4j and logback jars,&amp;nbsp;&lt;BR /&gt;as well as the conf directory containing logback.xml&lt;BR /&gt;&lt;BR /&gt;/apps/dis/java/jdk/bin/java&lt;BR /&gt;-Dzookeeper.log.dir=/apps/zookeeper/log&lt;BR /&gt;-Dzookeeper.log.file=zookeeper.log&lt;BR /&gt;-cp&lt;BR /&gt;...&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../lib/slf4j-api-1.7.30.jar:&lt;BR /&gt;...&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../lib/logback-core-1.2.13.jar:&lt;BR /&gt;...&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../lib/logback-classic-1.2.13.jar:&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../conf:&lt;BR /&gt;...&lt;BR /&gt;org.apache.zookeeper.server.quorum.QuorumPeerMain&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../conf/zoo.cfg&lt;BR /&gt;&lt;BR /&gt;The logback.xml file is in&amp;nbsp;&lt;BR /&gt;/apps/zookeeper/bin/zkcurrent/bin/../conf&lt;BR /&gt;with rollingfile and console appenders activated:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"&amp;gt;&lt;BR /&gt;&amp;lt;encoder&amp;gt;&lt;BR /&gt;&amp;lt;pattern&amp;gt;%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n&amp;lt;/pattern&amp;gt;&lt;BR /&gt;&amp;lt;/encoder&amp;gt;&lt;BR /&gt;&amp;lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&amp;gt;&lt;BR /&gt;&amp;lt;level&amp;gt;${zookeeper.console.threshold}&amp;lt;/level&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;&amp;lt;appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;BR /&gt;&amp;lt;File&amp;gt;${zookeeper.log.dir}/${zookeeper.log.file}&amp;lt;/File&amp;gt;&lt;BR /&gt;&amp;lt;encoder&amp;gt;&lt;BR /&gt;&amp;lt;pattern&amp;gt;%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n&amp;lt;/pattern&amp;gt;&lt;BR /&gt;&amp;lt;/encoder&amp;gt;&lt;BR /&gt;&amp;lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&amp;gt;&lt;BR /&gt;&amp;lt;level&amp;gt;${zookeeper.log.threshold}&amp;lt;/level&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&amp;gt;&lt;BR /&gt;&amp;lt;maxIndex&amp;gt;${zookeeper.log.maxbackupindex}&amp;lt;/maxIndex&amp;gt;&lt;BR /&gt;&amp;lt;FileNamePattern&amp;gt;${zookeeper.log.dir}/${zookeeper.log.file}.%i&amp;lt;/FileNamePattern&amp;gt;&lt;BR /&gt;&amp;lt;/rollingPolicy&amp;gt;&lt;BR /&gt;&amp;lt;triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&amp;gt;&lt;BR /&gt;&amp;lt;MaxFileSize&amp;gt;${zookeeper.log.maxfilesize}&amp;lt;/MaxFileSize&amp;gt;&lt;BR /&gt;&amp;lt;/triggeringPolicy&amp;gt;&lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;root level="INFO"&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="CONSOLE" /&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="ROLLINGFILE" /&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;All suggestions welcome.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 11:37:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/388866#M246805</guid>
      <dc:creator>Alf015</dc:creator>
      <dc:date>2024-06-06T11:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper 3.8.4 not logging</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/391313#M247560</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102022"&gt;@Alf015&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you share in what context&amp;nbsp; standalone? Package with HDP or CDP etc. This will give a better understanding on maybe how to replicate your environment and enable us to help resolve your issue.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 14:56:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/391313#M247560</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2024-08-02T14:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper 3.8.4 not logging</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/399875#M250562</link>
      <description>&lt;P&gt;ZK 3.8.4 uses the LogBack feature for logging, which uses 2 libraries&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;logback-core-1.2.13.jar&lt;/LI&gt;&lt;LI&gt;logback-classic-1.2.13.jar ( Missing Jar )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;one of them was missing from my bundle. I downloaded and copied the jar in&amp;nbsp;zookeeper/lib/ dir and restarted the service. This worked for me.&lt;BR /&gt;Steps -&lt;/P&gt;&lt;P&gt;Locate the logback jar, download the other missing jar, and paste in that dir.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cd /opt/&lt;/LI&gt;&lt;LI&gt;wget &lt;A href="https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.2.13/logback-classic-1.2.13.jar" target="_blank"&gt;https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.2.13/logback-classic-1.2.13.jar&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;cksum logback-classic-1.2.13.jar | grep -i "103870831 232073"&lt;/LI&gt;&lt;LI&gt;chown root:root logback-classic-1.2.13.jar&lt;/LI&gt;&lt;LI&gt;cp logback-classic-1.2.13.jar /usr/odp/3.3.6.0-1/zookeeper/lib/&lt;/LI&gt;&lt;LI&gt;cp logback-classic-1.2.13.jar /usr/odp/3.3.6.0-1/cruise-control3/dependant-libs/&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 09 Jan 2025 11:09:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Zookeeper-3-8-4-not-logging/m-p/399875#M250562</guid>
      <dc:creator>amd0629</dc:creator>
      <dc:date>2025-01-09T11:09:08Z</dc:date>
    </item>
  </channel>
</rss>

