[jira] [Commented] (KAFKA-6050) Cannot alter default topic config
[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16200812#comment-16200812 ] Tom Bentley commented on KAFKA-6050: Ah, thanks [~mimaison], you're right! In that case I would suggest that trying to use {{}} as the {{--entity-name}} should consistently print a helpful error message about using {{--entity-default}}, rather than being accepted in one situation, and erroring in the other. > Cannot alter default topic config > - > > Key: KAFKA-6050 > URL: https://issues.apache.org/jira/browse/KAFKA-6050 > Project: Kafka > Issue Type: Bug >Reporter: Tom Bentley > > The command to describe the default topic config > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 \ > --describe --entity-type topics --entity-name '' > {noformat} > returns without error, but the equivalent command to alter the default topic > config: > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-name '' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "" > is illegal, it contains a character other than ASCII alphanumerics, '.', '_' > and '-' > at org.apache.kafka.common.internals.Topic.validate(Topic.java:45) > at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578) > at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595) > at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52) > at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63) > at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103) > at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70) > at kafka.admin.ConfigCommand.main(ConfigCommand.scala) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KAFKA-6050) Cannot alter default topic config
[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16200735#comment-16200735 ] Mickael Maison commented on KAFKA-6050: --- I've not played with {{topics}} entities yet but for {{users}} and {{clients}} you need to use {{--entity-default}} to specify the {{}} entity. > Cannot alter default topic config > - > > Key: KAFKA-6050 > URL: https://issues.apache.org/jira/browse/KAFKA-6050 > Project: Kafka > Issue Type: Bug >Reporter: Tom Bentley > > The command to describe the default topic config > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 \ > --describe --entity-type topics --entity-name '' > {noformat} > returns without error, but the equivalent command to alter the default topic > config: > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-name '' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "" > is illegal, it contains a character other than ASCII alphanumerics, '.', '_' > and '-' > at org.apache.kafka.common.internals.Topic.validate(Topic.java:45) > at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578) > at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595) > at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52) > at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63) > at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103) > at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70) > at kafka.admin.ConfigCommand.main(ConfigCommand.scala) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KAFKA-6050) Cannot alter default topic config
[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16200035#comment-16200035 ] Tom Bentley commented on KAFKA-6050: [~huxi_2b] no worries, I didn't know about this magic topic name either, before discovering it in the code. > Cannot alter default topic config > - > > Key: KAFKA-6050 > URL: https://issues.apache.org/jira/browse/KAFKA-6050 > Project: Kafka > Issue Type: Bug >Reporter: Tom Bentley > > The command to describe the default topic config > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 \ > --describe --entity-type topics --entity-name '' > {noformat} > returns without error, but the equivalent command to alter the default topic > config: > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-name '' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "" > is illegal, it contains a character other than ASCII alphanumerics, '.', '_' > and '-' > at org.apache.kafka.common.internals.Topic.validate(Topic.java:45) > at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578) > at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595) > at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52) > at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63) > at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103) > at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70) > at kafka.admin.ConfigCommand.main(ConfigCommand.scala) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KAFKA-6050) Cannot alter default topic config
[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16200030#comment-16200030 ] huxihx commented on KAFKA-6050: --- Sorry for the misunderstanding although the exceptions do complain the invalid topic names:) > Cannot alter default topic config > - > > Key: KAFKA-6050 > URL: https://issues.apache.org/jira/browse/KAFKA-6050 > Project: Kafka > Issue Type: Bug >Reporter: Tom Bentley > > The command to describe the default topic config > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 \ > --describe --entity-type topics --entity-name '' > {noformat} > returns without error, but the equivalent command to alter the default topic > config: > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-name '' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "" > is illegal, it contains a character other than ASCII alphanumerics, '.', '_' > and '-' > at org.apache.kafka.common.internals.Topic.validate(Topic.java:45) > at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578) > at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595) > at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52) > at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63) > at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103) > at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70) > at kafka.admin.ConfigCommand.main(ConfigCommand.scala) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KAFKA-6050) Cannot alter default topic config
[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16200024#comment-16200024 ] Tom Bentley commented on KAFKA-6050: I'm not trying to create a topic with that name, I'm trying to change the default for a topic config. "" is used as a "placeholder" topic to store the default topic configurations (which explains why I'm able to {{--describe}} it). > Cannot alter default topic config > - > > Key: KAFKA-6050 > URL: https://issues.apache.org/jira/browse/KAFKA-6050 > Project: Kafka > Issue Type: Bug >Reporter: Tom Bentley > > The command to describe the default topic config > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 \ > --describe --entity-type topics --entity-name '' > {noformat} > returns without error, but the equivalent command to alter the default topic > config: > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-name '' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "" > is illegal, it contains a character other than ASCII alphanumerics, '.', '_' > and '-' > at org.apache.kafka.common.internals.Topic.validate(Topic.java:45) > at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578) > at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595) > at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52) > at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63) > at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103) > at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70) > at kafka.admin.ConfigCommand.main(ConfigCommand.scala) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KAFKA-6050) Cannot alter default topic config
[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16200017#comment-16200017 ] huxihx commented on KAFKA-6050: --- Do you mean your topic name is ""? You are not allowed to create topics with such names. > Cannot alter default topic config > - > > Key: KAFKA-6050 > URL: https://issues.apache.org/jira/browse/KAFKA-6050 > Project: Kafka > Issue Type: Bug >Reporter: Tom Bentley > > The command to describe the default topic config > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 \ > --describe --entity-type topics --entity-name '' > {noformat} > returns without error, but the equivalent command to alter the default topic > config: > {noformat} > bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-name '' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "" > is illegal, it contains a character other than ASCII alphanumerics, '.', '_' > and '-' > at org.apache.kafka.common.internals.Topic.validate(Topic.java:45) > at kafka.admin.AdminUtils$.validateTopicConfig(AdminUtils.scala:578) > at kafka.admin.AdminUtils$.changeTopicConfig(AdminUtils.scala:595) > at kafka.admin.AdminUtilities$class.changeConfigs(AdminUtils.scala:52) > at kafka.admin.AdminUtils$.changeConfigs(AdminUtils.scala:63) > at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:103) > at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:70) > at kafka.admin.ConfigCommand.main(ConfigCommand.scala) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)