You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/02/20 02:44:39 UTC

[GitHub] [rocketmq] TianMing2018 opened a new pull request #3869: [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found

TianMing2018 opened a new pull request #3869:
URL: https://github.com/apache/rocketmq/pull/3869


   add find_java_home function to avoid error: Algorithm HmacSHA1 not available
   
   
   **Make sure set the target branch to `develop`**
   
   ## What 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] codecov-commenter commented on pull request #3869: [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on pull request #3869:
URL: https://github.com/apache/rocketmq/pull/3869#issuecomment-1068411472


   # [Codecov](https://codecov.io/gh/apache/rocketmq/pull/3869?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#3869](https://codecov.io/gh/apache/rocketmq/pull/3869?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (840da24) into [develop](https://codecov.io/gh/apache/rocketmq/commit/c1bb6aa27b10e1d55995ee9cef22b1905f5ee843?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (c1bb6aa) will **increase** coverage by `0.36%`.
   > The diff coverage is `n/a`.
   
   ```diff
   @@              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     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/rocketmq/pull/3869?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...org/apache/rocketmq/store/ha/WaitNotifyObject.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3RvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3JvY2tldG1xL3N0b3JlL2hhL1dhaXROb3RpZnlPYmplY3QuamF2YQ==) | `66.07% <0.00%> (-5.36%)` | :arrow_down: |
   | [...apache/rocketmq/remoting/netty/ResponseFuture.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cmVtb3Rpbmcvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3JvY2tldG1xL3JlbW90aW5nL25ldHR5L1Jlc3BvbnNlRnV0dXJlLmphdmE=) | `85.00% <0.00%> (-5.00%)` | :arrow_down: |
   | [...rocketmq/remoting/netty/NettyRemotingAbstract.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cmVtb3Rpbmcvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3JvY2tldG1xL3JlbW90aW5nL25ldHR5L05ldHR5UmVtb3RpbmdBYnN0cmFjdC5qYXZh) | `46.88% <0.00%> (-4.03%)` | :arrow_down: |
   | [.../java/org/apache/rocketmq/logging/inner/Level.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bG9nZ2luZy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcm9ja2V0bXEvbG9nZ2luZy9pbm5lci9MZXZlbC5qYXZh) | `36.00% <0.00%> (-2.00%)` | :arrow_down: |
   | [...etmq/client/latency/LatencyFaultToleranceImpl.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y2xpZW50L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9jbGllbnQvbGF0ZW5jeS9MYXRlbmN5RmF1bHRUb2xlcmFuY2VJbXBsLmphdmE=) | `49.35% <0.00%> (-1.94%)` | :arrow_down: |
   | [...pache/rocketmq/store/MultiPathMappedFileQueue.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3RvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3JvY2tldG1xL3N0b3JlL011bHRpUGF0aE1hcHBlZEZpbGVRdWV1ZS5qYXZh) | `92.30% <0.00%> (-1.93%)` | :arrow_down: |
   | [...ent/impl/consumer/DefaultLitePullConsumerImpl.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y2xpZW50L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9jbGllbnQvaW1wbC9jb25zdW1lci9EZWZhdWx0TGl0ZVB1bGxDb25zdW1lckltcGwuamF2YQ==) | `67.75% <0.00%> (-1.56%)` | :arrow_down: |
   | [...he/rocketmq/client/trace/AsyncTraceDispatcher.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y2xpZW50L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9jbGllbnQvdHJhY2UvQXN5bmNUcmFjZURpc3BhdGNoZXIuamF2YQ==) | `79.70% <0.00%> (-1.49%)` | :arrow_down: |
   | [...java/org/apache/rocketmq/logging/inner/Logger.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bG9nZ2luZy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcm9ja2V0bXEvbG9nZ2luZy9pbm5lci9Mb2dnZXIuamF2YQ==) | `50.23% <0.00%> (-1.44%)` | :arrow_down: |
   | [...che/rocketmq/namesrv/kvconfig/KVConfigManager.java](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bmFtZXNydi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcm9ja2V0bXEvbmFtZXNydi9rdmNvbmZpZy9LVkNvbmZpZ01hbmFnZXIuamF2YQ==) | `59.18% <0.00%> (-1.03%)` | :arrow_down: |
   | ... and [35 more](https://codecov.io/gh/apache/rocketmq/pull/3869/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/rocketmq/pull/3869?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/rocketmq/pull/3869?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [c1bb6aa...840da24](https://codecov.io/gh/apache/rocketmq/pull/3869?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] TianMing2018 commented on pull request #3869: [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found

Posted by GitBox <gi...@apache.org>.
TianMing2018 commented on pull request #3869:
URL: https://github.com/apache/rocketmq/pull/3869#issuecomment-1056296398


   It seems not works as your wish。you can simply reappear this issue by follow steps,which according to&nbsp;rocketmq-docker/play-docker.sh at master · apache/rocketmq-docker (github.com)
   ```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
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.tools.command.cluster.ClusterListSubCommand.execute(ClusterListSubCommand.java:93)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:139)
   &nbsp; &nbsp; &nbsp; &nbsp; 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
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclSigner.signAndBase64Encode(AclSigner.java:84)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclSigner.calSignature(AclSigner.java:73)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclSigner.calSignature(AclSigner.java:68)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclUtils.calSignature(AclUtils.java:69)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclClientRPCHook.doBeforeRequest(AclClientRPCHook.java:44)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.doBeforeRpcHooks(NettyRemotingAbstract.java:172)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:368)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.client.impl.MQClientAPIImpl.getBrokerClusterInfo(MQClientAPIImpl.java:1337)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl.examineBrokerClusterInfo(DefaultMQAdminExtImpl.java:306)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.tools.admin.DefaultMQAdminExt.examineBrokerClusterInfo(DefaultMQAdminExt.java:251)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.tools.command.cluster.ClusterListSubCommand.printClusterBaseInfo(ClusterListSubCommand.java:172)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.tools.command.cluster.ClusterListSubCommand.execute(ClusterListSubCommand.java:88)
   &nbsp; &nbsp; &nbsp; &nbsp; ... 2 more
   Caused by: org.apache.rocketmq.acl.common.AclException: [10015:signature-failed] unable to calculate a request signature. error=Algorithm HmacSHA1 not available
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclSigner.sign(AclSigner.java:63)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclSigner.signAndBase64Encode(AclSigner.java:79)
   &nbsp; &nbsp; &nbsp; &nbsp; ... 13 more
   Caused by: java.security.NoSuchAlgorithmException: Algorithm HmacSHA1 not available
   &nbsp; &nbsp; &nbsp; &nbsp; at javax.crypto.Mac.getInstance(Mac.java:181)
   &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.rocketmq.acl.common.AclSigner.sign(AclSigner.java:57)
   &nbsp; &nbsp; &nbsp; &nbsp; ... 14 more
   
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人: ***@***.***&gt;; 
   发送时间: 2022年2月24日(星期四) 中午1:49
   收件人: ***@***.***&gt;; 
   抄送: ***@***.***&gt;; ***@***.***&gt;; 
   主题: 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: ***@***.***&gt;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] duhenglucky commented on pull request #3869: [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found

Posted by GitBox <gi...@apache.org>.
duhenglucky commented on pull request #3869:
URL: https://github.com/apache/rocketmq/pull/3869#issuecomment-1056012290


   @TianMing2018 ping~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] TianMing2018 edited a comment on pull request #3869: [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found

Posted by GitBox <gi...@apache.org>.
TianMing2018 edited a comment on pull request #3869:
URL: https://github.com/apache/rocketmq/pull/3869#issuecomment-1056296398


   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
   
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人: ***@***.***&gt;; 
   发送时间: 2022年2月24日(星期四) 中午1:49
   收件人: ***@***.***&gt;; 
   抄送: ***@***.***&gt;; ***@***.***&gt;; 
   主题: 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: ***@***.***&gt;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] coveralls commented on pull request #3869: [ISSUE #23] solve error Algorithm HmacSHA1 not available when your java_home is not found

Posted by GitBox <gi...@apache.org>.
coveralls commented on pull request #3869:
URL: https://github.com/apache/rocketmq/pull/3869#issuecomment-1068419248






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org