kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkr...@apache.org
Subject svn commit: r1575165 - /kafka/site/081/ops.html
Date Fri, 07 Mar 2014 04:18:37 GMT
Author: jkreps
Date: Fri Mar  7 04:18:37 2014
New Revision: 1575165

URL: http://svn.apache.org/r1575165
Log:
Remove reference to controlled shutdown tool.

Modified:
    kafka/site/081/ops.html

Modified: kafka/site/081/ops.html
URL: http://svn.apache.org/viewvc/kafka/site/081/ops.html?rev=1575165&r1=1575164&r2=1575165&view=diff
==============================================================================
--- kafka/site/081/ops.html (original)
+++ kafka/site/081/ops.html Fri Mar  7 04:18:37 2014
@@ -53,12 +53,7 @@ When a server is stopped gracefully it h
 	<li>It will migrate any partitions the server is the leader for to other replicas
prior to shutting down. This will make the leadership transfer faster and minimize the time
each partition is unavailable to a few milliseconds.
 </ol>
 
-Syncing the logs will happen automatically happen whenever the server is stopped other than
by a hard kill, but the controlled leadership migration requires using a special tool.
-<pre>
- &gt; bin/kafka-run-class.sh kafka.admin.ShutdownBroker --zookeeper zk_host:port/chroot
--broker broker.id
-</pre>
-
-Since graceful shutdown is a good thing and you may automatically be stopping and starting
the broker through a deployment tool you can also make the broker do this automatically by
setting the following server configuration:
+Syncing the logs will happen automatically happen whenever the server is stopped other than
by a hard kill, but the controlled leadership migration requires using a special setting:
 <pre>
 	controlled.shutdown.enable=true
 </pre>
@@ -94,7 +89,7 @@ The source and destination clusters are 
 <p>
 Here is an example showing how to mirror a single topic (named <i>my-topic</i>)
from two input clusters:
 <pre>
- &gt; bin/kafka-run-class.sh kafka.admin.ShutdownBroker --zookeeper zk_host:port/chroot
--consumer.config consumer-1.properties --consumer.config consumer-2.properties --producer.config
producer.properties --whitelist my-topic
+ &gt; bin/kafka-run-class.sh kafka.tools.MirrorMaker --zookeeper zk_host:port/chroot
--consumer.config consumer-1.properties --consumer.config consumer-2.properties --producer.config
producer.properties --whitelist my-topic
 </pre>
 Note that we specify the list of topics with the <code>--whitelist</code> option.
This option allows any regular expression using <a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html">Java-style
regular expressions</a>. So you could mirror two topics named <i>A</i> and
<i>B</i> using <code>--whitelist 'A|B'</code>. Or you could mirror
<i>all</i> topics using <code>--whitelist '*'</code>. Make sure to
quote any regular expression to ensure the shell doesn't try to expand it as a file path.
For convenience we allow the use of ',' instead of '|' to specify a list of topics.
 <p>



Mime
View raw message