A zookeeper command is limited to 8KB.
See original GitHub issueWhen issuing a command, the output on the socket is truncated at 8KB.
zk = KazooClient()
buf = zk.command("stat")
Perhaps you could read from the socket until the socket is drained rather than truncating to only 8KB of data from the socket? https://github.com/python-zk/kazoo/blob/4d268adf9837836f05dde5ec81be0d7bbd759e78/kazoo/client.py#L653
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
ZooKeeper Administrator's Guide - Apache ZooKeeper
This section contains information about deploying Zookeeper and covers these topics: System Requirements. Clustered (Multi-Server) Setup.
Read more >Kafka 3.3 Documentation
Apache Kafka can be started using ZooKeeper or KRaft. To get started with either configuration follow one the sections below but not both....
Read more >Kafka 2.5 Documentation
NOTE: Your local environment must have Java 8+ installed. Run the following commands in order to start all services in the correct order:...
Read more >Kafka 1.1 Documentation
Kafka uses ZooKeeper so you need to first start a ZooKeeper server if you ... A more limited legacy producer and consumer api...
Read more >Kafka 2.7 Documentation
NOTE: Your local environment must have Java 8+ installed. Run the following commands in order to start all services in the correct order:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I stumbled upon the same issue today, as I was trying to parse the
cons
output, and was missing some data.To bypass the 8192 char limit, I overrode my client
command
method withHi,
Yes we would definitely accept PRs for this. I guess the addition of a new kwarg to https://github.com/python-zk/kazoo/blob/master/kazoo/client.py#L705 in order to make the size adjustable, with a default value to the current one, seems safe. But any better ideas are welcomed.