You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "huxihx (JIRA)" <ji...@apache.org> on 2017/10/11 09:36:00 UTC
[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&focusedCommentId=16200017#comment-16200017 ]
huxihx commented on KAFKA-6050:
-------------------------------
Do you mean your topic name is "<default>"? 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 '<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)