create
Create an object.
Use this command to create an object on the cluster to which you are connected. For Apache Kafka, you can create topics, ACLs for topics, clusters, groups and delegation tokens.
Create Command Forms
- create topic <TopicNames> partitions <Int> replication-factor <Int> [force | if-not-exists | disable-rack-aware]
- Create a topic or topics with specified characteristics.
- create topic <TopicNames> replica-assignment <String> [force | if-not-exists | disable-rack-aware]
- Create a topic or topics based on a specified replica assignment.
- create topic-acl <TopicNames> allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
- Create an ACL for a specified topic or topics.
- create topic-acl <TopicNames> producer allow-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
- Create a producer-role ACL for a specified topic or topics.
- create topic-acl <TopicNames> consumer allow-principal <PrincipalType:name> [force | allow-host <String> | cluster | transaction-id <String>]
- Create a consumer-role ACL for a specified topic or topics.
- create cluster-acl allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
- Create a cluster ACL.
- create group-acl <String> allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
- Create a group ACL.
- create delegation-token-acl <String> allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
- Create a delegation token ACL.
Examples
cluster@myCluster> create topic topic1 partitions 1 replication-factor 2 cluster@myCluster> create topic topic1, topic2, topic3 replica-assignment 0:2 cluster@myCluster> create topic-acl topic2 allow-principal type:Name cluster@myCluster> create topic-acl topic1 producer allow-principal type:Name cluster@myCluster> create topic-acl topic1 consumer allow-principal type:Name group 0 cluster@myCluster> create cluster-acl allow-principal type:Name cluster@myCluster> create group-acl 0 allow-principal type:Name cluster@myCluster> create delegation-token-acl aclName allow-principal
Copyright © Cloud Software Group, Inc. All rights reserved.