我有一个带有 docker swarm 的集群环境。 我将 Elasticsearch 镜像从 2.4 升级到 5.6,现在当我部署应用程序时,出现错误:
ERROR: Validation failed: Elastic search not accessible with the parameters provided by the setup file. Hosts: nga_es, Port: 9300, Cluster name: elasticsearch. Error: None of the configured nodes are available.
我从尝试连接到 Elasticsearch 的第二个容器中收到错误。
这是我写的docker-compose.yml
文件(版本3):(与弹性相关的行):
nga_es:
networks:
octanet:
aliases:
- nga_es
environment:
ES_JAVA_OPTS: '-Xms4G -Xmx4G'
tty: true
image: elasticsearch:5.6
ports:
- 9300
- 9200
stdin_open: true
有人知道我为什么会收到此错误吗?我没有主意了。
最佳答案
您是否阅读了有关该 elasticsearch:5 镜像的所有 Docker Hub 注释?
它已被弃用,最好移至 official es image .
你有吗see the "cluster" notes ES 需要什么集群设置和功能?
关于linux - docker错误elasticsearch镜像无法使用安装文件提供的参数访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48608972/