引入 ahas-sentinel-client 依赖,client连接不上sentinel-dash

我使用的是sentinel最新release版本:1.7.1。

现象是,8719端口无法启动,

执行InitExecutor.doInit();报错: ERROR: AHAS init fail, ahas.license is needed

@OverRide public void init() throws Exception { if (!ahasInitSuccess.get()) { return; //这里就直接返回了,怎么可以忽略ahas呢?我并不用它。 } // do not print stack trace when logger not found for ACM. LogLog.setQuietMode(true); // Set current process configuration id. MachineUtils.setCurrentProcessConfigurationId(clientInfoService.getAid());

SentinelAcmDataSourceService acmDataSourceService = new SentinelAcmDataSourceService(clientInfoService);
acmDataSourceService.initAcmDataSource();
initSentinel();

}

把ahas-sentinel-client引用注释掉就可以了,否则会自动连ahas。

原提问者GitHub用户hepyu

展开
收起
云上静思 2023-05-19 16:34:41 148 分享 版权
1 条回答
写回答
取消 提交回答
  • 引入 AHAS 依赖默认连接 AHAS 控制台。接入文档参考:https://help.aliyun.com/document_detail/131232.html

    原回答者GitHub用户sczyh30

    2023-05-19 22:44:07
    赞同 展开评论

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

还有其他疑问?
咨询AI助理