<?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: ZooKeeper - Set Trace mask in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156626#M53164</link>
    <description>&lt;P&gt;Found the error in Zookeeper log file.&lt;/P&gt;&lt;PRE&gt;2017-02-01 11:33:59,000 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@827] - Processing stmk command from /0:0:0:0:0:0:0:1:47438
2017-02-01 11:33:59,001 - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@218] - Ignoring unexpected runtime exception
java.nio.BufferUnderflowException
        at java.nio.Buffer.nextGetIndex(Buffer.java:506)
        at java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:412)
        at org.apache.zookeeper.server.NIOServerCnxn.checkFourLetterWord(NIOServerCnxn.java:865)
        at org.apache.zookeeper.server.NIOServerCnxn.readLength(NIOServerCnxn.java:924)
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:237)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
        at java.lang.Thread.run(Thread.java:745)

&lt;/PRE&gt;&lt;P&gt;Found the related bug:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/ZOOKEEPER-2227" target="_blank"&gt;https://issues.apache.org/jira/browse/ZOOKEEPER-2227&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will be included in the next HDP release.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 01:47:49 GMT</pubDate>
    <dc:creator>StewartThomasJ1</dc:creator>
    <dc:date>2017-02-02T01:47:49Z</dc:date>
    <item>
      <title>ZooKeeper - Set Trace mask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156625#M53163</link>
      <description>&lt;P&gt;I am having trouble on my system trying to use the stmk command for Zookeeper.&lt;/P&gt;&lt;PRE&gt;[hadoop@los90hdpc4m3][~]$ echo "envi" | nc localhost 2181 | grep zookeeper.version
zookeeper.version=3.4.6-37--1, built on 11/29/2016 17:59 GMT

[hadoop@los90hdpc4m3][~]$ echo "gtmk" | nc localhost 2181
306

[hadoop@los90hdpc4m3][~]$ perl -e "print 'stmk', pack('q&amp;gt;', 0b0011111010)" | nc localhost 2181&lt;/PRE&gt;&lt;P&gt;The stmk command, built using the Perl example shown in the ZooKeeper Administrator Guide, just hangs and never returns. Has anyone else had better luck enabling Zookeeper tracing via stmk? This is on a HDP 2.5.3 system. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:00:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156625#M53163</guid>
      <dc:creator>StewartThomasJ1</dc:creator>
      <dc:date>2022-09-16T11:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: ZooKeeper - Set Trace mask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156626#M53164</link>
      <description>&lt;P&gt;Found the error in Zookeeper log file.&lt;/P&gt;&lt;PRE&gt;2017-02-01 11:33:59,000 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@827] - Processing stmk command from /0:0:0:0:0:0:0:1:47438
2017-02-01 11:33:59,001 - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@218] - Ignoring unexpected runtime exception
java.nio.BufferUnderflowException
        at java.nio.Buffer.nextGetIndex(Buffer.java:506)
        at java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:412)
        at org.apache.zookeeper.server.NIOServerCnxn.checkFourLetterWord(NIOServerCnxn.java:865)
        at org.apache.zookeeper.server.NIOServerCnxn.readLength(NIOServerCnxn.java:924)
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:237)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
        at java.lang.Thread.run(Thread.java:745)

&lt;/PRE&gt;&lt;P&gt;Found the related bug:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/ZOOKEEPER-2227" target="_blank"&gt;https://issues.apache.org/jira/browse/ZOOKEEPER-2227&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will be included in the next HDP release.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 01:47:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156626#M53164</guid>
      <dc:creator>StewartThomasJ1</dc:creator>
      <dc:date>2017-02-02T01:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: ZooKeeper - Set Trace mask</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156627#M53165</link>
      <description>&lt;P&gt;As the Jira says, stmk is rarely used, but the current version of Zookeeper, ver. 3.4.6 was added in HDP-2.x, so yes, 3.4.7 or higher which fixes the bug should be added soon. &lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 06:21:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ZooKeeper-Set-Trace-mask/m-p/156627#M53165</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-02-02T06:21:46Z</dc:date>
    </item>
  </channel>
</rss>

