You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2017/07/06 09:10:07 UTC
kafka git commit: KAFKA-5508; Documentation for altering topics
Repository: kafka
Updated Branches:
refs/heads/trunk 907855423 -> 6d203361a
KAFKA-5508; Documentation for altering topics
Operations documentation should guide user to employ `kafka-configs.sh` to add/remove configs for a topic.
Author: huxihx <hu...@hotmail.com>
Reviewers: Damian Guy <da...@gmail.com>
Closes #3429 from huxihx/KAFKA-5508_Doc_for_altering_topics
Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/6d203361
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/6d203361
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/6d203361
Branch: refs/heads/trunk
Commit: 6d203361a04380d8fb0f23c0bfcb37811eccb590
Parents: 9078554
Author: huxihx <hu...@hotmail.com>
Authored: Thu Jul 6 10:10:03 2017 +0100
Committer: Damian Guy <da...@gmail.com>
Committed: Thu Jul 6 10:10:03 2017 +0100
----------------------------------------------------------------------
docs/ops.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kafka/blob/6d203361/docs/ops.html
----------------------------------------------------------------------
diff --git a/docs/ops.html b/docs/ops.html
index ca0cfb1..85a6e10 100644
--- a/docs/ops.html
+++ b/docs/ops.html
@@ -52,11 +52,11 @@
<p>
To add configs:
<pre class="brush: bash;">
- > bin/kafka-topics.sh --zookeeper zk_host:port/chroot --alter --topic my_topic_name --config x=y
+ > bin/kafka-configs.sh --zookeeper zk_host:port/chroot --entity-type topics --entity-name my_topic_name --alter --add-config x=y
</pre>
To remove a config:
<pre class="brush: bash;">
- > bin/kafka-topics.sh --zookeeper zk_host:port/chroot --alter --topic my_topic_name --delete-config x
+ > bin/kafka-configs.sh --zookeeper zk_host:port/chroot --entity-type topics --entity-name my_topic_name --alter --delete-config x
</pre>
And finally deleting a topic:
<pre class="brush: bash;">