private static String host = "192.0.0.1";
本地地址不能写成127.0.0.1 应该写成localhost 否则报错
[None of the configured nodes are available: [{#transport#-1}{eMCQZdrcSf-RrmRw3fcjTQ}{192.0.0.1}{192.0.0.1:9300}]]
本文探讨了在配置Elasticsearch集群时遇到的一个常见错误:所有配置的节点均不可用的问题。具体表现为尝试连接到本地主机时使用了错误的地址格式,即使用了192.0.0.1而非localhost,导致无法正确建立集群节点间的通信。
private static String host = "192.0.0.1";
本地地址不能写成127.0.0.1 应该写成localhost 否则报错
[None of the configured nodes are available: [{#transport#-1}{eMCQZdrcSf-RrmRw3fcjTQ}{192.0.0.1}{192.0.0.1:9300}]]
1884
3084
6404

被折叠的 条评论
为什么被折叠?