[ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found#3869
Merged
Merged
Conversation
…our java_home is not found
yuz10
approved these changes
Feb 21, 2022
yuz10
left a comment
Member
There was a problem hiding this comment.
Nice job, but please use a valid issue number. thx
HScarb
approved these changes
Feb 22, 2022
ni-ze
approved these changes
Feb 23, 2022
panzhi33
approved these changes
Feb 23, 2022
caigy
requested changes
Feb 24, 2022
caigy
left a comment
Contributor
There was a problem hiding this comment.
It seems that $JAVA_HOME would be overwritten if it already defined.
Contributor
|
@TianMing2018 ping~ |
Contributor
Author
|
It seems not works as your wish。you can simply reappear this issue by follow steps,which according to <https://github.com/apache/rocketmq-docker/blob/master/templates/play-docker.sh>
```shell
docker run -d --name rmqnamesrv -p 9876:9876 apacherocketmq/rocketmq:4.6.0 sh mqnamesrv
docker run -d --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -p 10909:10909 -p 10911:10911 -p 10912:10912 apacherocketmq/rocketmq:4.6.0 sh mqbroker
# docker inspect rmqnamesrv
docker exec -it rmqbroker ./mqadmin clusterList -n 172.17.0.2:9876
```
after above commands,you will see this exception
RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0).
RocketMQLog:WARN Please initialize the logger system properly.
org.apache.rocketmq.tools.command.SubCommandException: ClusterListSubCommand command failed
at org.apache.rocketmq.tools.command.cluster.ClusterListSubCommand.execute(ClusterListSubCommand.java:93)
at org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:139)
at org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:90)
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:69)
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:368)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.getBrokerClusterInfo(MQClientAPIImpl.java:1337)
at org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl.examineBrokerClusterInfo(DefaultMQAdminExtImpl.java:306)
at org.apache.rocketmq.tools.admin.DefaultMQAdminExt.examineBrokerClusterInfo(DefaultMQAdminExt.java:251)
at org.apache.rocketmq.tools.command.cluster.ClusterListSubCommand.printClusterBaseInfo(ClusterListSubCommand.java:172)
at org.apache.rocketmq.tools.command.cluster.ClusterListSubCommand.execute(ClusterListSubCommand.java:88)
... 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)
... 13 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)
... 14 more
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年2月24日(星期四) 中午1:49
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/rocketmq] [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found (PR #3869)
@caigy requested changes on this pull request.
It seems that $JAVA_HOME would be overwritten if it already defined.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
odbozhou
approved these changes
Mar 7, 2022
Codecov Report
@@ Coverage Diff @@
## develop #3869 +/- ##
=============================================
+ Coverage 47.44% 47.81% +0.36%
- Complexity 4917 4985 +68
=============================================
Files 633 633
Lines 42497 42525 +28
Branches 5579 5573 -6
=============================================
+ Hits 20163 20333 +170
+ Misses 19830 19691 -139
+ Partials 2504 2501 -3
Continue to review full report at Codecov.
|
1 similar comment
tianliuliu
approved these changes
Mar 16, 2022
sunxi92
approved these changes
Mar 18, 2022
lwclover
approved these changes
Apr 25, 2022
madongming1001
pushed a commit
to madongming1001/rocketmq
that referenced
this pull request
Jun 6, 2022
…our java_home is not found (apache#3869)
GenerousMan
pushed a commit
to GenerousMan/rocketmq
that referenced
this pull request
Aug 12, 2022
…our java_home is not found (apache#3869)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add find_java_home function to avoid error: Algorithm HmacSHA1 not available
Make sure set the target branch to
developWhat is the purpose of the change
Solve error Algorithm HmacSHA1 not available when your java_home is not found by adding find_java_home function to tools.sh
Brief changelog
Solve error Algorithm HmacSHA1 not available when your java_home is not found by adding find_java_home function to tools.sh
Verifying this change
eg: 172.17.0.2 is you rmqnamesrv ip address
you can use this command(
docker exec -it rmqbroker ./mqadmin clusterList -n 172.17.0.2:9876) to verify if RocketMQ broker works now.#23 Deploy broker with docker-compose returns NoSuchAlgorithmException