docker部署elasticsearch报错None of the configured nodes are available处理
·
docker部署elasticsearch报错None of the configured nodes are available处理
出现的问题
docker 安装了es,java 调用api出现的问题
说是解决方式又两种
1:把client.transport.sniff修改为false关闭嗅探;或者直接使用addTransportAddress方法把集群中其它机器的ip地址加到客户端中
以上的解决方案未验证
2:到docker 中的es中,修改
先进入 docker 中的es中 docker exec -it aa0652c53aa8 /bin/bash,修改文件
elasticsearch.yml
cluster.name: elasticsearch
network.host: 0.0.0.0
network.publish_host: 192.168.56.10
http.port: 9200
discovery.type: single-node
更多推荐
所有评论(0)