提问参考模版:
- nebula 版本:nebula3.1.0, java client:3.0.0
- 部署方式:分布式
- 安装方式:RPM
- 是否为线上版本:Y
- 硬件信息
- 磁盘 SS
- CPU64core、内存信息:128G
- 问题的具体描述
Boolean initResult = pool.init(addresses, nebulaPoolConfig);
initResult返回值为false
pool = new NebulaPool();
Session session = null;
NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig();
nebulaPoolConfig.setMaxConnSize(100);
String[] hostArr = hostAddress.split(",");
List<HostAddress> addresses = new ArrayList<>();
for (String hostPort : hostArr) {
String host = hostPort.split(":")[0];
int port = Integer.parseInt(hostPort.split(":")[1]);
addresses.add(new HostAddress(host, port));
}
Boolean initResult = pool.init(addresses, nebulaPoolConfig);
System.out.println("initResult=" + initResult);