[ 
https://issues.apache.org/jira/browse/KAFKA-5072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16127680#comment-16127680
 ] 

Soumabrata Chakraborty edited comment on KAFKA-5072 at 8/15/17 6:31 PM:
------------------------------------------------------------------------

Hi [~ondrej.tomcik] - Thanks for reaching out.

There's a linked PR on this JIRA (Would also need some documentation changes)

Its been some time since the JIRA and the PR was generated.  There hasn't been 
much attention to this JIRA - I just assumed that not so many people came 
across the need to be able to tag topics with custom metadata.  Good to know 
that you too are looking for a similar solution.  Perhaps if you vote for the 
JIRA - would help it get some attention

Feel free to reach out for further details.

With this change you could add custom metadata using the kafka-configs.sh as 
shown below.  The property name would need to start with "metadata." Let me 
know if this answers your question

{code:java}
[soumabrata@Krishna bin]$ ./kafka-configs.sh --zookeeper localhost:2181 
--entity-type topics --entity-name demo --alter --add-config 
'metadata.contact.info=soumabr...@gmail.com'
Completed Updating config for entity: topic 'demo'.

[soumabrata@Krishna bin]$ ./kafka-configs.sh --zookeeper localhost:2181 
--entity-type topics --entity-name demo --describe
Configs for topic 'demo' are metadata.contact.info=soumabr...@gmail.com
{code}



was (Author: soumabrata):
Hi [~ondrej.tomcik] - Thanks for reaching out.

There's a linked PR on this JIRA (Would also need some documentation changes)

Its been some time since the JIRA and the PR was generated.  There hasn't been 
much attention to this JIRA - I just assumed that not so many people came 
across the need to be able to tag topics with custom metadata.  Good to know 
that you too are looking for a similar solution.  Perhaps if you vote for the 
JIRA - would help it get some attention

Feel free to reach out for further details.

With this change you could add custom metadata using the kafka-configs.sh as 
shown below.  Let me know if this answers your question

{code:java}
[soumabrata@Krishna bin]$ ./kafka-configs.sh --zookeeper localhost:2181 
--entity-type topics --entity-name demo --alter --add-config 
'metadata.contact.info=soumabr...@gmail.com'
Completed Updating config for entity: topic 'demo'.

[soumabrata@Krishna bin]$ ./kafka-configs.sh --zookeeper localhost:2181 
--entity-type topics --entity-name demo --describe
Configs for topic 'demo' are metadata.contact.info=soumabr...@gmail.com
{code}


> Kafka topics should allow custom metadata configs within some config namespace
> ------------------------------------------------------------------------------
>
>                 Key: KAFKA-5072
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5072
>             Project: Kafka
>          Issue Type: Improvement
>          Components: config
>    Affects Versions: 0.10.2.0
>            Reporter: Soumabrata Chakraborty
>            Assignee: Soumabrata Chakraborty
>            Priority: Minor
>
> Kafka topics should allow custom metadata configs
> Such config properties may have some fixed namespace e.g. metadata* or custom*
> This is handy for governance.  For example, in large organizations sharing a 
> kafka cluster - it might be helpful to be able to configure properties like 
> metadata.contact.info, metadata.project, metadata.description on a topic.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to