搜索
查看
编辑修改
首页
UNITY
NODEJS
PYTHON
AI
GIT
PHP
GO
CEF3
JAVA
HTML
CSS
搜索
2023面试高手
这个屌丝很懒,什么也没留下!
关注作者
热门标签
jquery
HTML
CSS
PHP
ASP
PYTHON
GO
AI
C
C++
C#
PHOTOSHOP
UNITY
iOS
android
vue
xml
爬虫
SEO
LINUX
WINDOWS
JAVA
MFC
CEF3
CAD
NODEJS
GIT
Pyppeteer
article
热门文章
1
R语言实验报告_r语言实验报告模板
2
如何安装使用秋叶comfyui整合包,手把手详细教程_秋叶整合包
3
篮球竞赛预约平台设计与实现的源码+文档_体育赛事报名小程序 源码
4
grpc介绍与通信协议详解_grpc协议
5
Runtime Error可能产生的原因_c语言runtime error
6
Spring Boot学习笔记——运行一个简单程序_spring boot 运行普通java程序
7
git push报错 Missing or invalid credentials
8
Python split() 分隔符_info.split()
9
浅析Java基本数据类型_整数类型占用字节数为
10
带你走进API安全的知识海洋(二)_api限流 防盗链等
当前位置:
article
> 正文
RocketMQ在windows上安装和eclipse开发使用_you don't have javassist in your class path or you
作者:2023面试高手 | 2024-04-13 19:32:31
赞
踩
you don't have javassist in your class path or you don't have enough permiss
1.概述
RocketMQ是alibaba公司开源的一个纯java的开源消息中间件。
2.开发测试环境搭建
1. 安装&启动
进入到RocketMQ下载包解压的路径下
D:machineRocketMQ-3.0.8RocketMQ-3.0.8>
接下来安装
执行下边的命令或者执行install.bat(在这个bat文件中的命令如下)对maven熟悉的一眼就知道是执行clean package install assembly等操作。
mvn -Dmaven.test.skip=true clean packageinstall assembly:assembly –U
操作信息如下:
[code][INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] rocketmq-all 3.0.8
[INFO] rocketmq-remoting 3.0.8
[INFO] rocketmq-common 3.0.8
[INFO] rocketmq-client 3.0.8
[INFO] rocketmq-store 3.0.8
[INFO] rocketmq-broker 3.0.8
[INFO] rocketmq-tools 3.0.8
[INFO] rocketmq-research 3.0.8
[INFO] rocketmq-namesrv 3.0.8
[INFO] rocketmq-example 3.0.8
[INFO] rocketmq-qatest 3.0.8
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building rocketmq-all 3.0.8 3.0.8
[INFO]------------------------------------------------------------------------
[INFO]///省了…..编译打包过程
[INFO]------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] rocketmq-all 3.0.8................................ SUCCESS [5.861s]
[INFO] rocketmq-remoting 3.0.8 ...........................SUCCESS [1.483s]
[INFO] rocketmq-common 3.0.8............................. SUCCESS [1.627s]
[INFO] rocketmq-client 3.0.8............................. SUCCESS [1.486s]
[INFO] rocketmq-store 3.0.8.............................. SUCCESS [1.398s]
[INFO] rocketmq-broker 3.0.8............................. SUCCESS [1.512s]
[INFO] rocketmq-tools 3.0.8.............................. SUCCESS [1.125s]
[INFO] rocketmq-research 3.0.8........................... SUCCESS [0.917s]
[INFO] rocketmq-namesrv 3.0.8............................ SUCCESS [0.609s]
[INFO] rocketmq-example 3.0.8............................ SUCCESS [0.604s]
[INFO] rocketmq-qatest 3.0.8............................. SUCCESS [0.057s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]------------------------------------------------------------------------
[INFO] Total time: 18.145s
[INFO] Finished at: Fri Mar 28 10:36:08 CST2014
[INFO] Final Memory: 60M/395M
[INFO]------------------------------------------------------------------------
D:machineRocketMQ-3.0.8RocketMQ-3.0.8>[/code] 接下来把编译好的项目copy出来
[code]D:machineRocketMQ-3.0.8RocketMQ-3.0.8target> xcopy /E alibaba-rocketmq-3.0.8 D:machineRocketMQ-3.0.8
D:machineRocketMQ-3.0.8>dir 驱动器 D 中的卷是 软件 卷的序列号是000F-1D4F D:machineRocketMQ-3.0.8 的目录
2014/03/28 10:44 .
2014/03/28 10:44 ..
2014/03/28 10:44 alibaba-rocketmq
2014/03/07 15:08 52pax_global_header
2014/03/28 10:37 RocketMQ-3.0.8 1 个文件 52 字节 4 个目录 105,101,885,440 可用字节
D:machineRocketMQ-3.0.8>cd alibaba-rocketmq[/code]
启动服务
//启动mqnamesrv
[code]D:machineRocketMQ-3.0.8alibaba-rocketmq>start/b bin/mqnamesrv.exe >D:logsalibaba-rocketmq/mqnamesrv.log[/code] 可以通过jps查看一下是不是有了RocketMQ的进程,如下方的6484
[code]C:Usershouchangren>jps -v
6484 -Djava.ext.dirs=D:machineRocketMQ-3.0.8alibaba-rocketmqbin/../lib-Drocketmq.home.dir=D:machineRocketMQ-3.0.8alibaba-rocketmqbin/..-XX:MaxNewSize=512M -XX:MaxPermSize=128M -XX:NewSit abort
6876 JConsole -Denv.class.path=D:ProgramFilesJavajdk1.6.0_26lib -Dapplication.home=D:Program FilesJavajdk1.6.0_26-Djconsole.showOutputViewer
6936org.eclipse.equinox.launcher_1.2.0.v20110502.jar -Dosgi.requiredJavaVersion=1.5-Xms40m -Xmx512m -XX:MaxPermSize=256m
4140 Jps -Denv.class.path=D:ProgramFilesJavajdk1.6.0_26lib -Dapplication.home=D:Program FilesJavajdk1.6.0_26-Xms8m[/code] 看日志中信息D:logsalibaba-rocketmq/mqnamesrv.log
The Name Server boot success.
//启动broker
[code]D:machineRocketMQ-3.0.8alibaba-rocketmq>start/b bin/mqbroker.exe -n "10.57.41.19:9876">D:logsalibaba-rocketmq/mqbroker.log[/code] 看日志中信息D:logsalibaba-rocketmq/mqbroker.log
The broker[houchangren, 10.57.41.19:10911]boot success.
2.项目实例
1. 创建maven项目
Pom.xml文件如下
[code] 4.0.0 com.ruishenh gomeTest war 0.0.1-SNAPSHOT gomeTest Maven Webapp http://maven.apache.org UTF-8 com.alibaba.rocketmq rocketmq-client 3.0.8 com.alibaba.rocketmq rocketmq-all 3.0.8 pom ch.qos.logback logback-classic 1.1.1 ch.qos.logback logback-core 1.1.1 junit junit 4.10 test gomeTest
[/code] 2. 编写消息产生者Producer
文件路径:/gomeTest/src/main/java/com/ruishenh/rocketmq/example/Producer.java
[code]package com.ruishenh.rocketmq.example;
import java.util.concurrent.TimeUnit;
import com.alibaba.rocketmq.client.exception.MQClientException;
import com.alibaba.rocketmq.client.producer.DefaultMQProducer;
import com.alibaba.rocketmq.client.producer.SendResult;
import com.alibaba.rocketmq.common.message.Message;
public classProducer { public static void main(String[] args) throws MQClientException, InterruptedException{ /** * 一个应用创建一个Producer,由应用来维护此对象,可以设置为全局对象或者单例 * 注意:ProducerGroupName需要由应用来保证唯一 * ProducerGroup这个概念发送普通的消息时,作用不大,但是发送分布式事务消息时,比较关键, * 因为服务器会回查这个Group下的任意一个Producer */ final DefaultMQProducerproducer = newDefaultMQProducer("ProducerGroupName"); producer.setNamesrvAddr("10.57.41.19:9876"); producer.setInstanceName("Producer"); /** * Producer对象在使用之前必须要调用start初始化,初始化一次即可 * 注意:切记不可以在每次发送消息时,都调用start方法 */ producer.start(); /** * 下面这段代码表明一个Producer对象可以发送多个topic,多个tag的消息。 * 注意:send方法是同步调用,只要不抛异常就标识成功。但是发送成功也可会有多种状态, * 例如消息写入Master成功,但是Slave不成功,这种情况消息属于成功,但是对于个别应用如果对消息可靠性要求极高, * 需要对这种情况做处理。另外,消息可能会存在发送失败的情况,失败重试由应用来处理。 */ for (int i = 0; i < 10; i++){ try { { Messagemsg = newMessage("TopicTest1",// topic "TagA",// tag "OrderID001",// key ("Hello MetaQA").getBytes());// body SendResultsendResult = producer.send(msg); System.out.println(sendResult); } { Messagemsg = newMessage("TopicTest2",// topic "TagB",// tag "OrderID0034",// key ("Hello MetaQB").getBytes());// body SendResultsendResult = producer.send(msg); System.out.println(sendResult); } { Messagemsg = newMessage("TopicTest3",// topic "TagC",// tag "OrderID061",// key ("Hello MetaQC").getBytes());// body SendResultsendResult = producer.send(msg); System.out.println(sendResult); } }catch(Exception e) { e.printStackTrace(); } TimeUnit.MILLISECONDS.sleep(1000); } /** * 应用退出时,要调用shutdown来清理资源,关闭网络连接,从MetaQ服务器上注销自己 * 注意:我们建议应用在JBOSS、Tomcat等容器的退出钩子里调用shutdown方法 */
// producer.shutdown(); Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { public void run() { producer.shutdown(); } })); System.exit(0); }
}[/code] 3. 编写消息消费者Consumer
文件路径:Test/src/main/java/com/ruishenh/rocketmq/example/PushConsumer.java
[code]package com.ruishenh.rocketmq.example;
import java.util.List;
importcom.alibaba.rocketmq.client.consumer.DefaultMQPushConsumer;
importcom.alibaba.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
importcom.alibaba.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;
importcom.alibaba.rocketmq.client.consumer.listener.MessageListenerConcurrently;
importcom.alibaba.rocketmq.client.exception.MQClientException;
importcom.alibaba.rocketmq.common.message.MessageExt;
public class PushConsumer { /** * 当前例子是PushConsumer用法,使用方式给用户感觉是消息从RocketMQ服务器推到了应用客户端。 * 但是实际PushConsumer内部是使用长轮询Pull方式从MetaQ服务器拉消息,然后再回调用户Listener方法 */ publicstatic void main(String[] args) throws InterruptedException, MQClientException{ /** * 一个应用创建一个Consumer,由应用来维护此对象,可以设置为全局对象或者单例 * 注意:ConsumerGroupName需要由应用来保证唯一 */ DefaultMQPushConsumerconsumer = new DefaultMQPushConsumer( "ConsumerGroupName"); consumer.setNamesrvAddr("10.57.41.19:9876"); consumer.setInstanceName("Consumber"); /** * 订阅指定topic下tags分别等于TagA或TagC或TagD */ consumer.subscribe("TopicTest1","TagA || TagC || TagD"); /** * 订阅指定topic下所有消息 * 注意:一个consumer对象可以订阅多个topic */ consumer.subscribe("TopicTest2","*"); consumer.registerMessageListener(newMessageListenerConcurrently() { publicConsumeConcurrentlyStatus consumeMessage( Listmsgs, ConsumeConcurrentlyContext context) { System.out.println(Thread.currentThread().getName() +" Receive New Messages: " + msgs.size()); MessageExtmsg = msgs.get(0); if(msg.getTopic().equals("TopicTest1")) { //执行TopicTest1的消费逻辑 if(msg.getTags() != null && msg.getTags().equals("TagA")) { //执行TagA的消费 System.out.println(newString(msg.getBody())); }else if (msg.getTags() != null &&msg.getTags().equals("TagC")) { //执行TagC的消费 System.out.println(newString(msg.getBody())); }else if (msg.getTags() != null &&msg.getTags().equals("TagD")) { //执行TagD的消费 System.out.println(newString(msg.getBody())); } }else if (msg.getTopic().equals("TopicTest2")) { System.out.println(newString(msg.getBody())); } returnConsumeConcurrentlyStatus.CONSUME_SUCCESS; } }); /** * Consumer对象在使用之前必须要调用start初始化,初始化一次即可 */ consumer.start(); System.out.println("ConsumerStarted."); }
}[/code] Producer执行console:
12:05:39.399 [main] DEBUGi.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
12:05:39.405 [main] DEBUGi.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
12:05:39.411 [main] DEBUGi.n.util.internal.PlatformDependent - Platform: Windows
12:05:39.411 [main] DEBUGi.n.util.internal.PlatformDependent - Java version: 6
12:05:39.411 [main] DEBUGi.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
12:05:39.412 [main] DEBUGi.n.util.internal.PlatformDependent0 - java.nio.ByteBuffer.cleaner: available
12:05:39.413 [main] DEBUGi.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
12:05:39.413 [main] DEBUGi.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
12:05:39.413 [main] DEBUGi.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
12:05:39.413 [main] DEBUGi.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
12:05:39.413 [main] DEBUGi.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
12:05:39.413 [main] DEBUGi.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
12:05:39.414 [main] DEBUGi.n.util.internal.PlatformDependent - Javassist: unavailable
12:05:39.414 [main] DEBUGi.n.util.internal.PlatformDependent - You don't have Javassist in your classpath or you don't have enough permission to load dynamically generatedclasses. Please check the configurationfor better performance.
12:05:39.414 [main] DEBUGi.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
12:05:39.429 [main] DEBUGio.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
12:05:39.429 [main] DEBUGio.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold:512
12:05:39.481 [main] DEBUGi.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier:0x653a966ddb02e036
12:05:39.523[NettyClientWorkerThread_1] DEBUG io.netty.util.ResourceLeakDetector --Dio.netty.noResourceLeakDetection: false
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BA16, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=0], queueOffset=66]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BAAB, messageQueue=MessageQueue [topic=TopicTest2,brokerName=houchangren, queueId=0], queueOffset=66]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BB41, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=0], queueOffset=66]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BBD6, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=1], queueOffset=66]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BC6B, messageQueue=MessageQueue [topic=TopicTest2,brokerName=houchangren, queueId=1], queueOffset=66]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BD01, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=1], queueOffset=66]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BD96, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=2], queueOffset=61]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BE2B, messageQueue=MessageQueue [topic=TopicTest2,brokerName=houchangren, queueId=2], queueOffset=61]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BEC1, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=2], queueOffset=61]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BF56, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=3], queueOffset=61]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001BFEB, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=3], queueOffset=61]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C081, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=3], queueOffset=61]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C116, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=0], queueOffset=67]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C1AB, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=0], queueOffset=67]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C241, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=0], queueOffset=67]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C2D6, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=1], queueOffset=67]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C36B, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=1], queueOffset=67]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C401, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=1], queueOffset=67]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C496, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=2], queueOffset=62]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C52B, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=2], queueOffset=62]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C5C1, messageQueue=MessageQueue [topic=TopicTest3,brokerName=houchangren, queueId=2], queueOffset=62]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C656, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=3], queueOffset=62]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C6EB, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=3], queueOffset=62]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C781, messageQueue=MessageQueue [topic=TopicTest3,brokerName=houchangren, queueId=3], queueOffset=62]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C816, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=0], queueOffset=68]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C8AB, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=0], queueOffset=68]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C941, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=0], queueOffset=68]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001C9D6, messageQueue=MessageQueue[topic=TopicTest1, brokerName=houchangren, queueId=1], queueOffset=68]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001CA6B, messageQueue=MessageQueue[topic=TopicTest2, brokerName=houchangren, queueId=1], queueOffset=68]
SendResult [sendStatus=SEND_OK,msgId=0A39291300002A9F000000000001CB01, messageQueue=MessageQueue[topic=TopicTest3, brokerName=houchangren, queueId=1], queueOffset=68]
Consumer执行console:
12:00:49.539 [main] DEBUGi.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
12:00:49.545 [main] DEBUGi.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
12:00:49.550 [main] DEBUGi.n.util.internal.PlatformDependent - Platform: Windows
12:00:49.550 [main] DEBUGi.n.util.internal.PlatformDependent - Java version: 6
12:00:49.550 [main] DEBUGi.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
12:00:49.551 [main] DEBUGi.n.util.internal.PlatformDependent0 - java.nio.ByteBuffer.cleaner: available
12:00:49.552 [main] DEBUGi.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
12:00:49.552 [main] DEBUGi.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
12:00:49.552 [main] DEBUGi.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
12:00:49.552 [main] DEBUGi.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
12:00:49.552 [main] DEBUGi.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
12:00:49.552 [main] DEBUGi.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
12:00:49.553 [main] DEBUGi.n.util.internal.PlatformDependent - Javassist: unavailable
12:00:49.553 [main] DEBUGi.n.util.internal.PlatformDependent - You don't have Javassist in your classpath or you don't have enough permission to load dynamically generatedclasses. Please check the configurationfor better performance.
12:00:49.553 [main] DEBUGi.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
12:00:49.568 [main] DEBUGio.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
12:00:49.568 [main] DEBUGio.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold:512
12:00:49.622 [main] DEBUGi.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier:0x2e4f8e2e67b4cc9b
12:00:49.663[NettyClientWorkerThread_1] DEBUG io.netty.util.ResourceLeakDetector --Dio.netty.noResourceLeakDetection: false
Consumer Started.
ConsumeMessageThread-ConsumerGroupName-4Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-2Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-1Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-6Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-5Receive New Messages: 1
ConsumeMessageThread-ConsumerGroupName-3Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-8Receive New Messages: 1
Hello MetaQA
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-9Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-10Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-7Receive New Messages: 1
Hello MetaQA
ConsumeMessageThread-ConsumerGroupName-11Receive New Messages: 1
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-12Receive New Messages: 1
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-13Receive New Messages: 1
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-15Receive New Messages: 1
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-14Receive New Messages: 1
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-16Receive New Messages: 1
ConsumeMessageThread-ConsumerGroupName-17Receive New Messages: 1
Hello MetaQB
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-18Receive New Messages: 1
ConsumeMessageThread-ConsumerGroupName-19Receive New Messages: 1
Hello MetaQB
Hello MetaQB
ConsumeMessageThread-ConsumerGroupName-20Receive New Messages: 1
Hello MetaQB
参考:
http://my.oschina.net/cloudcoder/blog/200741
https://github.com/alibaba/RocketMQ/wiki/Quick-Start
声明:
本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:
https://www.wpsshop.cn/w/2023面试高手/article/detail/418153
推荐阅读
article
3D
-Aware
Multi
-Class
Image
-to-
Image
Translation wi...
Recent advances in
3D
-aware generative models (
3D
-aware GANs...
赞
踩
article
开发工具
系类 之
Cannot
determine
path
to
‘
to
ols
.
jar
‘ libr...
开发工具
系类 之
Cannot
determine
path
to
'
to
ols
.
jar
' library for 17...
赞
踩
article
解决JDK报错问题
Cannot
determine
path
to
‘
to
ols
.
jar
‘ libr...
JDK报错问题
Cannot
determine
path
to
'
to
ols
.
jar
'
library
for
17 (...
赞
踩
article
【已解决】Cannot
determine
path
to
‘
to
ols
.
jar
‘
library
for
17
(...
在运行为我们的Java项目的时候报Cannot
determine
path
to
'
to
ols
.
jar
' librar...
赞
踩
article
RocketMq
重要知识点_
rocketmq
offsetstore
...
OffserStore和信息存储位置 实际运行系统,难免会遇到重新消费某条消息,跳过一段时间内的消息等情况。这些异常情况...
赞
踩
article
python
绝对
导入
_
Python
:相对
导入
与
绝对
导入
(
import
)、os.
path
、__
file
...
Python
在
导入
import
包的时候,有
绝对
导入
和相对
导入
方式。
绝对
导入
:
import
p1.m1 或者 from p...
赞
踩
article
20
- 包
导入
原理
,及常见报错
解决
方式_使用了
sys
.
path
.
append
但是没有加载出来...
目录一、路径1、绝对路径2、相对路径3、常用命令二、模块和包
导入
原理
1、辅助说明2、
原理
三、
解决
跨包调用模块中工具报错1...
赞
踩
article
Spring
Boot Jar包运行指定
配置文件
_
springboot
启动参数 --
config
....
springboot
_
springboot
启动参数 --
config
.
path
springboot
启动参数 --co...
赞
踩
article
深入理解
Java
类型信息
(
Class
对象
)与
反射
机制_
java
class
...
【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权) http://blog.csdn.net/
java
z...
赞
踩
article
git
submodule
update
--
init
--
recursive
时遇到 fatal:...
报错信息:生成类型和目录全选 yes ,生成公钥(id_rsa.pub)和私钥(id_rsa),默认目录在用户名文件夹下...
赞
踩
article
一篇文章把
RabbitMQ
、
RocketMQ
、Kafka三元归一_
kafka
rabbitmq
ro...
一个
RabbitMQ
实例就是一个Broker 虚拟主机。相当于Mysql的DataBase, 一个Broker上可以存在...
赞
踩
article
Powershell
中
ssh
的使用_
powershell
path
...
1. 安装
ssh
服务#安装
ssh
iwr https://chocolatey.org/install.ps1 -Us...
赞
踩
article
mac
下载安装
mySQL
(含配置
path
环境变量
)_
mac
mysql
path
...
一、下载
mySQL
官网下载注意:请选择 dmg 类型的文件下载。比如:二、安装1、一定要记录下初始密码下载完成后,双击...
赞
踩
article
Docker
安装
RocketMQ
...
【代码】
Docker
安装
RocketMQ
。
Docker
安装
RocketMQ
目录 一、新...
赞
踩
article
React
中
ref
的使用(类组件和函数组件)以及
forwardRef
与 useImperati...
在一个父组件中,我们想要获取到其中的节点元素或者子组件实例,从而直接调用其上面的方法。Class 类组件和函数组件是两种...
赞
踩
article
RocketMQ
连接报错RemotingConnectException:
connect
to <...
上一篇文章:基于SpringBoot整合
RocketMQ
异步发送短信功能在项目启动的过程中报了
RocketMQ
连接错...
赞
踩
article
【
RocketMQ
】安装与部署(W
in
dows)_please set the
rocketmq
_h...
w
in
dows环境下尝试部署
RocketMQ
,以及处理一些可能出现的问题,包含一些处理思路等。_please set t...
赞
踩
article
Spring
boot
整合
RocketMQ
——使用
rocketmq
-
spring
-
boot
-sta...
使用
rocketmq
-
spring
-
boot
-
starter
来
配置
发送和消费
RocketMQ
消息_
spring
b...
赞
踩
article
【
NextCloud
】
安装
后性能优化
配置
_
php
的
安装
似乎不正确,
无法访问
系统
环境变量
。geten...
PHP的
安装
似乎不正确,
无法访问
系统
环境变量
。请参照
安装
说明文档 ↗中的PHP
配置
说明查阅您服务器的PHP
配置
信息,特别...
赞
踩
article
Error: JAVA_HOME is
not
set
and
java
could
not
be ...
解决zookeeper集群通过脚本启动是出现的JAVA_HOME变量没配置的问题_error:
java
_home is...
赞
踩
相关标签
3d
java
jar
开发语言
idea
windows
python绝对导入
python
pycharm
ide
spring boot
class
Class对象
反射机制
git
rabbitmq
kafka
分布式
ssh
mysql