论坛首页 Java企业应用论坛

MQ常见问题

浏览 9127 次
锁定老帖子 主题:MQ常见问题
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2017-02-08  

1.  sh bin/mqadmin topicList 命令发生错误,错误如下:

org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to <null> failed
	at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:357)
	at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicListFromNameServer(MQClientAPIImpl.java:1219)
	at org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl.fetchAllTopicList(DefaultMQAdminExtImpl.java:220)
	at org.apache.rocketmq.tools.admin.DefaultMQAdminExt.fetchAllTopicList(DefaultMQAdminExt.java:183)
	at org.apache.rocketmq.tools.command.topic.TopicListSubCommand.execute(TopicListSubCommand.java:105)
	at org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:128)
	at org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:78)

解决办法: export NAMESRV_ADDR=localhost:9876 之后在进行查询

论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics