kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jun...@apache.org
Subject svn commit: r1580516 - /kafka/site/081/ops.html
Date Sun, 23 Mar 2014 15:42:37 GMT
Author: junrao
Date: Sun Mar 23 15:42:36 2014
New Revision: 1580516

URL: http://svn.apache.org/r1580516
Log:
minor formatting of json output

Modified:
    kafka/site/081/ops.html

Modified: kafka/site/081/ops.html
URL: http://svn.apache.org/viewvc/kafka/site/081/ops.html?rev=1580516&r1=1580515&r2=1580516&view=diff
==============================================================================
--- kafka/site/081/ops.html (original)
+++ kafka/site/081/ops.html Sun Mar 23 15:42:36 2014
@@ -133,9 +133,9 @@ For instance, the following example will
 Since, the tool accepts the input list of topics as a json file, you first need to identify
the topics you want to move and create the json file as follows-
 <pre>
 > cat topics-to-move.json
-{"topics":
-     [{"topic": "foo1"},{"topic": "foo2"}],
-     "version":1
+{"topics": [{"topic": "foo1"},
+            {"topic": "foo2"}],
+ "version":1
 }
 </pre>
 Once the json file is ready, use the partition reassignment tool to generate a candidate
assignment-
@@ -149,7 +149,7 @@ Current partition replica assignment
                {"topic":"foo2","partition":2,"replicas":[1,2]},
                {"topic":"foo2","partition":0,"replicas":[3,4]},
                {"topic":"foo1","partition":1,"replicas":[2,3]},
-               {topic":"foo2","partition":1,"replicas":[2,3]}]
+               {"topic":"foo2","partition":1,"replicas":[2,3]}]
 }
 
 Proposed partition reassignment configuration
@@ -175,7 +175,7 @@ Current partition replica assignment
                {"topic":"foo2","partition":2,"replicas":[1,2]},
                {"topic":"foo2","partition":0,"replicas":[3,4]},
                {"topic":"foo1","partition":1,"replicas":[2,3]},
-               {topic":"foo2","partition":1,"replicas":[2,3]}]
+               {"topic":"foo2","partition":1,"replicas":[2,3]}]
 }
 
 Save this to use as the --reassignment-json-file option during rollback
@@ -186,7 +186,7 @@ Successfully started reassignment of par
                {"topic":"foo2","partition":2,"replicas":[5,6]},
                {"topic":"foo2","partition":0,"replicas":[5,6]},
                {"topic":"foo1","partition":1,"replicas":[5,6]},
-               {topic":"foo2","partition":1,"replicas":[5,6]}]
+               {"topic":"foo2","partition":1,"replicas":[5,6]}]
 }
 </pre>
 <p>
@@ -249,7 +249,8 @@ For instance, the following example incr
 The first step is to hand craft the custom reassignment plan in a json file-
 <pre>
 > cat increase-replication-factor.json
-{"version":1,"partitions":[{"topic":"foo","partition":0,"replicas":[5,6,7]}]}
+{"version":1,
+ "partitions":[{"topic":"foo","partition":0,"replicas":[5,6,7]}]}
 </pre>
 Then, use the json file with the --execute option to start the reassignment process-
 <pre>



Mime
View raw message