Neha,

Thank you for the reply.   It would be handy if a command line tool could
merge the two configs and show the effective result.  Just an idea...

Thanks,

Roger


On Tue, Oct 14, 2014 at 2:29 PM, Neha Narkhede <neha.narkh...@gmail.com>
wrote:

> The topic level configs override the broker defaults. So using the
> kafka-topics tool should suffice.
>
> On Tue, Oct 14, 2014 at 1:32 PM, Roger Hoover <roger.hoo...@gmail.com>
> wrote:
>
> > I still have a question though.  Is there a definitive way to tell if a
> > topic is configured for compaction?  The way it seems to work now is that
> > the ZK config stores topic-specific config but the end results (whether
> > it's configured or not) is a combination of the topic-specific config and
> > the broker defaults for leader?
> >
> > Thanks,
> >
> > Roger
> >
> > On Tue, Oct 14, 2014 at 12:17 PM, Roger Hoover <roger.hoo...@gmail.com>
> > wrote:
> >
> > > 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