Skip to content

Commit

Permalink
MINOR: Fix typo in consumer ACL example
Browse files Browse the repository at this point in the history
Author: sunnykrgupta <[email protected]>

Reviewers: Manikumar Reddy <[email protected]>, Ismael Juma <[email protected]>

Closes apache#2839 from sunnykrGupta/trunk
  • Loading branch information
sunnykrGupta authored and ijuma committed Apr 11, 2017
1 parent 7c58351 commit d2f5589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/security.html
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ <h4><a id="security_authz_examples" href="#security_authz_examples">Examples</a>
The most common use case for acl management are adding/removing a principal as producer or consumer so we added convenience options to handle these cases. In order to add User:Bob as a producer of Test-topic we can execute the following command:
<pre> bin/kafka-acls.sh --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:Bob --producer --topic Test-topic</pre>
Similarly to add Alice as a consumer of Test-topic with consumer group Group-1 we just have to pass --consumer option:
<pre> bin/kafka-acls.sh --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:Bob --consumer --topic test-topic --group Group-1 </pre>
<pre> bin/kafka-acls.sh --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:Bob --consumer --topic Test-topic --group Group-1 </pre>
Note that for consumer option we must also specify the consumer group.
In order to remove a principal from producer or consumer role we just need to pass --remove option. </li>
</ul>
Expand Down

0 comments on commit d2f5589

Please sign in to comment.