You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Tom Bentley (JIRA)" <ji...@apache.org> on 2017/10/11 09:29:00 UTC

[jira] [Created] (KAFKA-6050) Cannot alter default topic config

Tom Bentley created KAFKA-6050:
----------------------------------

             Summary: 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)