当前位置:网站首页>Add / delete query of topic
Add / delete query of topic
2022-06-30 09:52:00 【Keep-upup】
topic The function of is to classify our data
First start zookeeper:kafka It depends on zookeeper Of , So for startup kafka We need to start first. zookeeper
zkServer.sh start
Restart kafka:
kafka-server-start.sh $KAFKA_HOME/config/server.properties &When everything is started jps see :

Successful launch !
Create a Topic:
bin/kafka-topics.sh --zookeeper spark-local:2181 --create --replication-factor 1 --partitions 1 --topic myTopic--topic This is followed by creating topic Of name
--replication-factor This is followed by the number of copies The number of copies cannot be greater than the number of available docker
--partitions This is followed by the number of partitions

View all in the virtual machine Topic:

myTopic Just created topic
Then create another Topic------myTopi
Delete Tipic:
kafka-topics.sh --delete --zookeeper spark-local:2181 --topic myTopi
Check again and there will be no myTopi
see myTopic Details of :
bin/kafka-topics.sh --describe --topic myTopic --zookeeper spark-local:2181 
You can see the number of partitions , replications ,leader Etc .
边栏推荐
- Pytorch graduate warm LR installation
- About the smart platform solution for business hall Terminal Desktop System
- Self service terminal handwritten Chinese character recognition input method library tjfink introduction
- 布隆过滤器
- (zero) most complete JVM knowledge points
- Cronexpression expression explanation and cases
- JVM tuning tool commands (notes)
- 直播带货源码开发中,如何降低直播中的延迟?
- Golang magic code
- Numpy (time date and time increment)
猜你喜欢

About the smart platform solution for business hall Terminal Desktop System

Dart 开发技巧

Mysq database remote connection error, remote connection is not allowed

Abstract classes and interfaces

Eight sorts (I)

Cb/s Architecture - Implementation Based on cef3+mfc

Shenhe thermomagnetic: Super fusion dual active cluster solution for MES system

(zero) most complete JVM knowledge points

MySQL knowledge summary (useful for thieves)

【新书推荐】Cleaning Data for Effective Data Science
随机推荐
Distributed ID
Critical applications and hyper converged infrastructure: the time has come
Hospital integration platform super fusion infrastructure transformation scheme
ABAP-时间函数
Cronexpression expression explanation and cases
Datatabletomodellist entity class
1, 基本配置
DDD interview
Comparison problems encountered in recent study
tf. keras. layers. Attention understanding summary
Cb/s Architecture - Implementation Based on cef3+mfc
八大排序(一)
Numpy (constant)
Net framework system requirements
Using OpenCV Net for image restoration
Plan the IT technology route for the new year? Let's learn about Gartner infrastructure hype cycle
Dart development skills
Initialize static resource demo
小程序开发踩坑之旅
Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today