RocketMQ中plain_acl.yml里的全局白名单只能写ip吗?能不能写主机名?我启动broker&proxy的时候会报错
java.lang.NumberFormatException: For input string: "broker"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.apache.rocketmq.acl.plain.RemoteAddressStrategyFactory$RangeRemoteAddressStrategy.analysis(RemoteAddressStrategyFactory.java:192)
at org.apache.rocketmq.acl.plain.RemoteAddressStrategyFactory$RangeRemoteAddressStrategy.(RemoteAddressStrategyFactory.java:170)
at org.apache.rocketmq.acl.plain.RemoteAddressStrategyFactory.getRemoteAddressStrategy(RemoteAddressStrategyFactory.java:71)
at org.apache.rocketmq.acl.plain.PlainPermissionManager.load(PlainPermissionManager.java:144)
at org.apache.rocketmq.acl.plain.PlainPermissionManager.(PlainPermissionManager.java:85)
at org.apache.rocketmq.acl.plain.PlainAccessValidator.(PlainAccessValidator.java:35)
at org.apache.rocketmq.broker.BrokerController.initialAcl(BrokerController.java:971)
at org.apache.rocketmq.broker.BrokerController.recoverAndInitService(BrokerController.java:836)
at org.apache.rocketmq.broker.BrokerController.initialize(BrokerController.java:792)
at org.apache.rocketmq.broker.BrokerStartup.createBrokerController(BrokerStartup.java:240)
at org.apache.rocketmq.proxy.ProxyStartup.createBrokerController(ProxyStartup.java:229)
at org.apache.rocketmq.proxy.ProxyStartup.createMessagingProcessor(ProxyStartup.java:187)
at org.apache.rocketmq.proxy.ProxyStartup.main(ProxyStartup.java:79)
看起来是加载到了broker相关的字段,我的plain_acl.yml里包含broker的地方只有:
globalWhiteRemoteAddresses:
域名不支持, 会分析是否连续的ip,或者 1.1.1.* 这种 ,此回答整理自钉群“群2-Apache RocketMQ 中国开发者钉钉群”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
涵盖 RocketMQ、Kafka、RabbitMQ、MQTT、轻量消息队列(原MNS) 的消息队列产品体系,全系产品 Serverless 化。RocketMQ 一站式学习:https://rocketmq.io/