Oh, duh.  I see it in the kafka-topics tool as well.  Sorry for the
distraction.

kafka-topics.sh --zookeeper localhost:2181 --describe --topic foo

Topic:foo PartitionCount:1 ReplicationFactor:1
Configs:cleanup.policy=compact

Topic: foo Partition: 0 Leader: 0 Replicas: 0 Isr: 0

On Tue, Oct 14, 2014 at 12:05 PM, Roger Hoover <roger.hoo...@gmail.com>
wrote:

> 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