Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7778344
  • 博文数量: 1777
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16412
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1777)

文章存档

2025年(7)

2024年(16)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2025-03-24 15:42:48

安装java17
JAVA_HOME=/usr/java/jdk-17.0.4.1
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/usr/java/apache-maven-3.9.9/bin
export JAVA_HOME
export PATH
export CLASSPATH

wget https :// dlcdn.apache.org/kafka/4.0.0/kafka_2.13-4.0.0.tgz
tar -xzf kafka_2.13-4.0.0.tgz
cd kafka_2.13-4.0.0
KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)"
bin/kafka-storage.sh format --standalone -t $KAFKA_CLUSTER_ID -c config/server.properties

创建topic
bin/kafka-topics.sh --create --topic test01 --bootstrap-server localhost:9092
查看topic
bin/kafka-topics.sh --describe --topic test01 --bootstrap-server localhost:9092
生产
bin/kafka-console-producer.sh --topic test01 --bootstrap-server localhost:9092
消费
bin/kafka-console-consumer.sh --topic test01 --from-beginning --bootstrap-server localhost:9092
阅读(25) | 评论(0) | 转发(0) |
0

上一篇:AutoAWQ 量化

下一篇:没有了

给主人留下些什么吧!~~