shardingProxy5.4.0集群模式使用nacos作为注册中心启动时报错

方便更快捷的说明问题,可以按需填写(可删除)

使用环境:shardingProxy5.4.0集群模式

场景、问题:shardingProxy5.4.0集群模式使用nacos作为注册中心启动时报错,报错内容:Exception in thread “main” org.apache.shardingsphere.mode.repository.cluster.exception.ClusterPersistRepositoryException: Cluster persist repository error, reason is: java.lang.reflect.InvocationTargetException

    at org.apache.shardingsphere.mode.repository.cluster.nacos.NacosRepository.createClient(NacosRepository.java:87)

已进行操作:已经引入了nacos作为注册中心的相关依赖包:

shardingsphere-cluster-mode-repository-nacos-5.4.0.jar
nacos-api-1.4.2.jar
nacos-client-1.4.2.jar
nacos-common-1.4.2.jar

server.yaml文件中关于集群模式的配置如下:
mode:
type: Cluster
repository:
type: Nacos
props:
namespace: public
server-lists: localhost:8848
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3

现状

京ICP备2021015875号