在为内置ES帐户设置密码时,登录到新安装的3节点集群docker exec -it es01 sh,然后运行bin/elasticsearch-setup-passwords interactive --url https://localhost:9200。
获取错误: sh-5.0# bin/elasticsearch-设置-密码交互--url https://localhost:9200
Failed to determine the health of the cluster running at https://localhost:9200
Unexpected response code [503] from calling GET https://localhost:9200/_cluster/health?pretty
Cause: master_not_discovered_exception还会在错误下面抛出卷曲:
sudo curl -X GET 'https://localhost:9200'
curl: (7) Failed connect to localhost:9200; Connection refused
sudo curl -X GET 'https://localhost:9216'
curl: (35) Encountered end of file各个节点的.P12证书已被传输。低于elasticsearch.yml
cluster.name: "docker-cluster"
network.host: 0.0.0.0已经设置了一个3节点弹力搜索集群使用坞-合成。遵循以下步骤:
获取步骤9中提到的错误。我遗漏了什么?
下面是docker-compose.yml文件
version: '2.2'
services:
es11:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION}
container_name: es11
environment:
- node.name=es11
- transport.port=9316
- cluster.name=uat-lands
- discovery.seed_hosts=es12,es13
- cluster.initial_master_nodes=es11,es12,es13
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=true
- xpack.security.http.ssl.verification_mode=certificate
- xpack.security.http.ssl.keystore.path=${CERTS_DIR}/es11/es11.p12
- xpack.security.http.ssl.truststore.path=${CERTS_DIR}/es11/es11.p12
- xpack.security.transport.ssl.enabled=true
- xpack.security.transport.ssl.verification_mode=certificate
- xpack.security.transport.ssl.keystore.path=${CERTS_DIR}/es11/es11.p12
- xpack.security.transport.ssl.truststore.path=${CERTS_DIR}/es11/es11.p12
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data:/usr/share/elasticsearch/data
- config:/usr/share/elasticsearch/config
- log:/usr/share/elasticsearch/logs
ports:
- 9216:9200
- 9316:9316
networks:
- elastic
dns:
- es11
healthcheck:
test: curl -k -s https://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5
volumes:
data:
driver: local
driver_opts:
config:
driver: local
driver_opts:
type: none
device: '/mnt/elasticmount/es11/config'
o: bind
log:
driver: local
driver_opts:
type: none
device: '/mnt/elasticmount/es11/log'
o: bind
networks:
elastic:
driver: overlay发布于 2022-11-03 09:20:11
未配置群集。我不知道你是怎么创造出来的。使用弹性文档启动停靠库中的集群。
https://stackoverflow.com/questions/74299644
复制相似问题