Useful commands
Revision | Date | Description |
|---|---|---|
| 24.07.2024 | Init Changelog |
List topics
Where:
MACHINES- list of machines in Kafka Cluster
Create new topic
Where:
MACHINES- list of machines in Kafka ClusterTOPIC- name of topic to createPARAMETERS- all parameters to attach to topic, like:--replication-factor 3--partitions 4--config cleanup.policy=compact--config min.insync.replicas=2--config message.timestamp.type=CreateTime
Create ACL
Where:
MACHINES- list of machines in Kafka ClusterUSERNAME- usernameSCOPE- scope to add into ACLTOPIC- name of topic
Create ACL for group
Where:
MACHINES- list of machines in Kafka ClusterUSERNAME- usernameSCOPE- scope to add into ACLGROUP- nameof group
Delete all ACLs for topic
Where:
MACHINES- list of machines in Kafka ClusterTOPIC- name of topic
Delete ACL for topic and user
Where:
MACHINES- list of machines in Kafka ClusterUSERNAME- usernameSCOPE- scope to add into ACLTOPIC- name of topic
Edit topic partition
Where:
MACHINES- list of machines in Kafka ClusterTOPIC- name of topicPARTITION_NUMBER- number of partition
Add user
Where:
MACHINES- list of machines in Kafka ClusterPASSWORD- password for user (with 8 symbols)USERNAME- name for user
Delete user
Where:
MACHINES- list of machines in Kafka ClusterUSERNAME- name for user