[ 
https://issues.apache.org/jira/browse/KAFKA-10418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ron Dagostino updated KAFKA-10418:
----------------------------------
    Description: 
Changing a topic config with the kafka-topics command while connecting to Kafka 
via --bootstrap-server (rather than connecting to ZooKeeper via --zookeeper) is 
not supported.  The desired functionality is available elsewhere, though: it is 
possible to change a topic config while connecting to Kafka rather than 
ZooKeeper via the kafka-configs command instead.  However, neither the 
kafka-topics error message received nor the kafka-topics help information 
itself indicates this other possibility.  For example:

{{$ kafka-topics.sh --bootstrap-server localhost:9092 --alter --topic test 
--config flush.messages=12345
Option combination "[bootstrap-server],[config]" can't be used with option 
"[alter]"
}}

{{$ kafka-topics.sh
...
--config <String: name=value>            A topic configuration override for the 
topic being created or altered...It is supported only in combination with -- 
create if --bootstrap-server option is used.
}}

Rather than simply saying that what you want to do isn't available, it would be 
better to say also that you can do it with the kafka-configs command.


  was:
Changing a topic config with the kafka-topics command while connecting to Kafka 
via --bootstrap-server (rather than connecting to ZooKeeper via --zookeeper) 
has been deprecated.  The desired functionality is available elsewhere: it is 
possible to change a topic config while connecting to Kafka rather than 
ZooKeeper via the kafka-configs command instead.  However, neither the 
kafka-topics error message received nor the kafka-topics help information 
itself indicates this other possibility.  For example:

{{$ kafka-topics.sh --bootstrap-server localhost:9092 --alter --topic test 
--config flush.messages=12345
Option combination "[bootstrap-server],[config]" can't be used with option 
"[alter]"
}}

{{$ kafka-topics.sh
...
--config <String: name=value>            A topic configuration override for the 
topic being created or altered...It is supported only in combination with -- 
create if --bootstrap-server option is used.
}}

Rather than simply saying that what you want to do isn't available, it would be 
better to say also that you can do it with the kafka-configs command.



> Unclear error/docs when altering topic configs via kafka-topics with 
> --bootstrap-server
> ---------------------------------------------------------------------------------------
>
>                 Key: KAFKA-10418
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10418
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Ron Dagostino
>            Assignee: Ron Dagostino
>            Priority: Minor
>             Fix For: 2.7.0
>
>
> Changing a topic config with the kafka-topics command while connecting to 
> Kafka via --bootstrap-server (rather than connecting to ZooKeeper via 
> --zookeeper) is not supported.  The desired functionality is available 
> elsewhere, though: it is possible to change a topic config while connecting 
> to Kafka rather than ZooKeeper via the kafka-configs command instead.  
> However, neither the kafka-topics error message received nor the kafka-topics 
> help information itself indicates this other possibility.  For example:
> {{$ kafka-topics.sh --bootstrap-server localhost:9092 --alter --topic test 
> --config flush.messages=12345
> Option combination "[bootstrap-server],[config]" can't be used with option 
> "[alter]"
> }}
> {{$ kafka-topics.sh
> ...
> --config <String: name=value>            A topic configuration override for 
> the topic being created or altered...It is supported only in combination with 
> -- create if --bootstrap-server option is used.
> }}
> Rather than simply saying that what you want to do isn't available, it would 
> be better to say also that you can do it with the kafka-configs command.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to