当前位置:网站首页>Idea view bytecode configuration
Idea view bytecode configuration
2022-07-02 09:25:00 【niceyz】
File-Settings-Tool-External Tools

show byte code
$JDKPath$\bin\javap.exe
-c $FileClass$
$OutputPath$

/********************** kafka **********************/
Kafka cluster colony
Point to point mode , Thread monitoring is required
Release / subscribe , The push speed is inconsistent with the client speed
Save the message according to topic categorize .
sender producer
The recipient consumer
Multiple instances , Each instance (server) be called broker
kafka rely on zookeeper Cluster save meta Information , Ensure system availability . Client requests can only Leader Handle
partition: Partition
Kafka Cluster colony :
Broker1 :
TopcicA(partition0) Leader
TopcicA(partition1) Follower
Broker2 :
TopcicA(partition0) Follower
TopcicA(partition1) Leader
Broker3 :
Partition0(message0、message1) topic It's divided into one area
Follower Do nothing
Consumer groups cannot consume the same partition at the same time
ConsumerA
Consumer group
ConsumerB
One consumer can consume more than one topic
mkdir logs
cd config
Set up the cluster , modify : server.properties
broker.id=0
delete.topic.enable=true
log.dirs=/opt/module
zookeeper.connect=hadoop102:2181,hadoop103:2181,hadoop104:2181
cd ..
xsync kafka/
vi server.properties
broker.id=1
broker.id=2
start-up kafka Start before Zookeeper:
zkstart.sh
Check whether the startup is successful :
/opt/module/zookeeper-3.4.10/bin/zkServer.sh status
Mode:follower Indicating successful startup .
start-up kafka:
machine 1:bin/kafka-server-start.sh config/server/properties
machine 2:bin/kafka-server-start.sh config/server/properties
machine 3:bin/kafka-server-start.sh config/server/properties
Each machine needs to be started separately
util.sh Check the startup process of three machines
establish Partition number 2 individual replications 2 individual topic name
bin/kafka-topics.sh --create --zookeeper hadoop102:2181 --partitions 2 -- replication-factor 2 --topic first
see
bin/kafka-topics.sh --list --zookeeper hadoop102:2181
Check the log
cd logs
Three machines , Number of copies set 5, Will report a mistake , Prompt for up to copies 3.
establish Partition 2 copy 5 topic name
bin/kafka-topics.sh --create --zookeeper hadoop102:2181 --partitions 2 -- replication-factor 5 --topic second
Start producer : To which topic send out
bin/kafka-console-producer.sh --broker -list hadoop102:9092 --topic first
>hello
>yz
Start consumer ( colony ) stay 103 Machine start up
Which one to consume topic, Get the latest data Consume from the beginning
bin/kafka-console-consumer.sh --zookeeper hadoop102:2181 --topic first --from-beginning
Use bootstrap-server Instead of zookeeper To eliminate the warning
Which one to consume topic, Get the latest data Consume from the beginning
bin/kafka-console-consumer.sh --bootstrap-server hadoop102:2181 --topic first --from-beginning
Data exists topic, Using machines 104 See how many topic
bin/kafka-topics.sh --list --zookeeper hadoop102:2181
__consumer_offsets explain : The system automatically creates , This should be used bootstrap after , Save to local topic
first
see topic details Description specifies topic
bin/kafka-topics.sh --zookeeper hadoop102:2181 --describeopic first
Partition Leader machine copy For election
Topic:first Partition: 0 Leader: 0 Replicas: 0,2 Isr: 0,2
Topic:first Partition: 1 Leader: 1 Replicas: 1,0 Isr: 1,0
Isr: 0,2( These two copies and leader Closest , Forward row ,leader After hanging up , Take the next one instead Leader)
machine whether Leader,Leader Only responsible for the producer to write data ,Follower Initiative from Leader Pull data .
0 Leader
1 Follower
2 Follower
Delete topic, You will be prompted to set to true
bin/kafka-topics.sh --delete --zookeeper hadoop102:2181 -topic first
Create from New topic
Partition 1 individual copy 3 individual Appoint topic name
bin/kafka-topics.sh --create --zookeeper hadoop102:2181 --partitions 1 --replication-factro 3 --topic first
边栏推荐
- Knife4j 2. Solution to the problem of file control without selection when uploading x version files
- 概率还不会的快看过来《统计学习方法》——第四章、朴素贝叶斯法
- MySQL error: unblock with mysqladmin flush hosts
- Machine learning practice: is Mermaid a love movie or an action movie? KNN announces the answer
- Cloudreve自建云盘实践,我说了没人能限制得了我的容量和速度
- [go practical basis] how to verify request parameters in gin
- Oracle modify database character set
- Insight into cloud native | microservices and microservice architecture
- 数构(C语言--代码有注释)——第二章、线性表(更新版)
- Matplotlib剑客行——初相识Matplotlib
猜你喜欢

别找了,Chrome浏览器必装插件都在这了

Customize redis connection pool

Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
![[go practical basis] gin efficient artifact, how to bind parameters to structures](/img/c4/44b3bda826bd20757cc5afcc5d26a9.png)
[go practical basis] gin efficient artifact, how to bind parameters to structures

《统计学习方法》——第五章、决策树模型与学习(上)

2022/2/13 summary

WSL安装、美化、网络代理和远程开发

Matplotlib剑客行——容纳百川的艺术家教程

Chrome user script manager tempermonkey monkey

View the port of the application published by was
随机推荐
cmd窗口中中文呈现乱码解决方法
Microservice practice | load balancing component and source code analysis
Long summary (code with comments) number structure (C language) -- Chapter 4, string (Part 1)
Machine learning practice: is Mermaid a love movie or an action movie? KNN announces the answer
Knife4j 2.X版本文件上传无选择文件控件问题解决
There is a problem with MySQL installation (the service already exists)
Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
CSDN Q & A_ Evaluation
Ora-12514 problem solving method
Break the cocoon | one article explains what is the real cloud primordial
Complete solution of servlet: inheritance relationship, life cycle, container, request forwarding and redirection, etc
使用IBM MQ远程连接时报错AMQ 4043解决思路
ORA-12514问题解决方法
Insight into cloud native | microservices and microservice architecture
远程连接IBM MQ报错AMQ4036解决方法
聊聊消息队列高性能的秘密——零拷贝技术
机器学习实战:《美人鱼》属于爱情片还是动作片?KNN揭晓答案
【Go实战基础】gin 高效神器,如何将参数绑定到结构体
"Interview high frequency question" is 1.5/5 difficult, and the classic "prefix and + dichotomy" application question
Solution to amq4036 error in remote connection to IBM MQ