I found this way:

zookeeper-shell.sh localhost:2181 get /config/topics/foo

{"version":1,"config":{"cleanup.policy":"compact"}}

cZxid = 0x57

ctime = Tue Oct 14 12:02:54 PDT 2014

mZxid = 0x57

mtime = Tue Oct 14 12:02:54 PDT 2014

pZxid = 0x57

cversion = 0

dataVersion = 0

aclVersion = 0

ephemeralOwner = 0x0

dataLength = 51

numChildren = 0

On Tue, Oct 14, 2014 at 11:58 AM, Roger Hoover <roger.hoo...@gmail.com>
wrote:

> Hi,
>
> How do I check if a topic is configured for compaction?  Is there a
> command-line tool to see topic metadata like cleanup.policy=compact?
>
> Thanks,
>
> Roger
>

Reply via email to