rocketMQ:unable to calculate a request signature. error=Algorithm HmacSHA1 not available

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/l18637220680/article/details/95379498

rocketMQ使用 ./mqadmin topicList -n localhost:9876报错

org.apache.rocketmq.tools.command.SubCommandException: TopicListSubCommand command failed
	at org.apache.rocketmq.tools.command.topic.TopicListSubCommand.execute(TopicListSubCommand.java:113)
	at org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:135)
	at org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:86)
Caused by: org.apache.rocketmq.acl.common.AclException: [10015:signature-failed] unable to calculate a request signature. error=[10015:signature-failed] unable to calculate a request signature. error=Algorithm HmacSHA1 not available
	at org.apache.rocketmq.acl.common.AclSigner.signAndBase64Encode(AclSigner.java:84)
	at org.apache.rocketmq.acl.common.AclSigner.calSignature(AclSigner.java:73)
	at org.apache.rocketmq.acl.common.AclSigner.calSignature(AclSigner.java:68)
	at org.apache.rocketmq.acl.common.AclUtils.calSignature(AclUtils.java:58)
	at org.apache.rocketmq.acl.common.AclClientRPCHook.doBeforeRequest(AclClientRPCHook.java:44)
	at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.doBeforeRpcHooks(NettyRemotingAbstract.java:172)
	at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:370)
	at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicListFromNameServer(MQClientAPIImpl.java:1239)
	at org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl.fetchAllTopicList(DefaultMQAdminExtImpl.java:222)
	at org.apache.rocketmq.tools.admin.DefaultMQAdminExt.fetchAllTopicList(DefaultMQAdminExt.java:189)
	at org.apache.rocketmq.tools.command.topic.TopicListSubCommand.execute(TopicListSubCommand.java:107)
	... 2 more
Caused by: org.apache.rocketmq.acl.common.AclException: [10015:signature-failed] unable to calculate a request signature. error=Algorithm HmacSHA1 not available
	at org.apache.rocketmq.acl.common.AclSigner.sign(AclSigner.java:63)
	at org.apache.rocketmq.acl.common.AclSigner.signAndBase64Encode(AclSigner.java:79)
	... 12 more
Caused by: java.security.NoSuchAlgorithmException: Algorithm HmacSHA1 not available
	at javax.crypto.Mac.getInstance(Mac.java:181)
	at org.apache.rocketmq.acl.common.AclSigner.sign(AclSigner.java:57)
	... 13 more

解决方法:

vim /home/H/rocketmq-all-4.4.0/distribution/target/apache-rocketmq/bin/tools.sh
在${JAVA_HOME}/jre/lib/ext后加上ext文件夹的绝对路径
例如:

JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=128m"
JAVA_OPT="${JAVA_OPT} -Djava.ext.dirs=${BASE_DIR}/lib:${JAVA_HOME}/jre/lib/ext:/usr/java/jdk1.8.0_65/jre/lib/ext"
展开阅读全文

No live SolrServers available to handle this request

08-20

solr vesion: 5.2.1rnzookeeper version: 3.4.6rnrndo load test: rn2 instances solr, 3 instances zookeeper.rn100 thread requests(50 no errors).rnrnorg.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this requestrn at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:570)rn at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)rn at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:975)rn at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:991)rn at com.xx.xx.search.solrcloud.query.service.se.solr.SolrCloudClient.search(SolrCloudClient.java:62)rn at com.xx.xx.search.solrcloud.query.SolrMultiQueryProcess$Consumer.query(SolrMultiQueryProcess.java:115)rn at com.xx.xx.search.solrcloud.query.SolrMultiQueryProcess$Consumer.run(SolrMultiQueryProcess.java:96)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://xxxx:8080/solr/xxxxrn at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:570)rn at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:233)rn at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:225)rn at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:520)rn ... 7 morernCaused by: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from poolrn at org.apache.http.impl.conn.PoolingClientConnectionManager.leaseConnection(PoolingClientConnectionManager.java:226)rn at org.apache.http.impl.conn.PoolingClientConnectionManager$1.getConnection(PoolingClientConnectionManager.java:195)rn at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:422)rn at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)rn at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)rn at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)rn at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)rn at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:462)rn ... 10 morern 论坛

没有更多推荐了,返回首页