当前位置:网站首页>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 .
边栏推荐
- About the smart platform solution for business hall Terminal Desktop System
- 单片机 MCU 固件打包脚本软件
- Redis docker 主从模式与哨兵sentinel
- Pipe pipe --namedpipe and anonymouspipe
- Properties of string
- JWT expiration processing - single token scheme
- Tclistener server and tcpclient client
- MySQL explain
- Niuke IOI weekly competition 20 popularization group (problem solving)
- (zero) most complete JVM knowledge points
猜你喜欢

Microsoft. Bcl. Async usage summary -- in Net framework 4.5 project Net framework version 4.5 and above can use async/await asynchronous feature in C 5

Read the difference and connection between hyperfusion and private cloud

Numpy (time date and time increment)

Terminal -- Zsh of terminal three swordsmen

Machine learning note 9: prediction model optimization (to prevent under fitting and over fitting problems)

CRF (conditional random field) learning summary

Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today

训练一个图像分类器demo in PyTorch【学习笔记】

Mysq database remote connection error, remote connection is not allowed
![[new book recommendation] mongodb performance tuning](/img/2c/e5a814df4412a246c703ca548a4f68.png)
[new book recommendation] mongodb performance tuning
随机推荐
[new book recommendation] cleaning data for effective data science
Machine learning note 9: prediction model optimization (to prevent under fitting and over fitting problems)
小程序手持弹幕的原理及实现(uni-app)
DDD interview
Tclistener server and tcpclient client use -- socket listening server and socketclient use
Shenhe thermomagnetic: Super fusion dual active cluster solution for MES system
Read the difference and connection between hyperfusion and private cloud
Electron, which can wrap web page programs into desktop applications
Niuke walks on the tree (ingenious application of parallel search)
CRF (conditional random field) learning summary
Function simplification principle: save if you can
MySQL explain
Eight sorts (II)
目标检测yolov5开源项目调试
训练一个图像分类器demo in PyTorch【学习笔记】
Redis docker master-slave mode and sentinel
仿照微信Oauth2.0接入方案
MySQL knowledge summary (useful for thieves)
Pytorch graduate warm LR installation
MCU firmware packaging Script Software