[ https://issues.apache.org/jira/browse/KAFKA-6050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16201667#comment-16201667 ]
Tom Bentley edited comment on KAFKA-6050 at 10/12/17 9:09 AM: -------------------------------------------------------------- It appears that {{--entity-default}} with topics doesn't work. {noformat} $ bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-default --add-config retention.ms=1000 Exception in thread "main" java.lang.IllegalArgumentException: --entity-name must be specified with --alter of Buffer(topics) at kafka.admin.ConfigCommand$ConfigCommandOptions.checkArgs(ConfigCommand.scala:331) at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:61) at kafka.admin.ConfigCommand.main(ConfigCommand.scala) {noformat} was (Author: tombentley): It appears that {{--entity-default}} with topics doesn't work. {noformat} $ bin/kafka-configs.sh --zookeeper localhost:2181 --alter \ > --entity-type topics --entity-default --add-config retention.ms=1000 Exception in thread "main" java.lang.IllegalArgumentException: --entity-name must be specified with --alter of Buffer(topics) at kafka.admin.ConfigCommand$ConfigCommandOptions.checkArgs(ConfigCommand.scala:331) at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:61) at kafka.admin.ConfigCommand.main(ConfigCommand.scala) {noformat> > --entity-name <default> should print error message > -------------------------------------------------- > > 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 '<default>' > {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 '<default>' --add-config > retention.ms=1000 > {noformat} > returns an error: > {noformat} > Error while executing config command Topic name "<default>" is illegal, it > contains a character other than ASCII alphanumerics, '.', '_' and '-' > org.apache.kafka.common.errors.InvalidTopicException: Topic name "<default>" > 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)