Unable setup password for 3 nodes cluster

I use podman to deploy 3 nodes cluster in 3 machines.

version: "3"
services:
  es01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
    container_name: es01
    environment:
      - node.name=es01
      - cluster.name=es-cluster
      - discovery.seed_hosts=es02,es03
      - cluster.initial_master_nodes=es01,es02,es03
      - "ES_JAVA_OPTS=-Xms3g -Xmx3g"
      - index.codec=best_compression
      - xpack.security.enabled=true
      - network.publish_host=172.31.44.179
    extra_hosts:
      - "es02:172.31.25.120"
      - "es03:172.31.18.77"
    ports:
      - 9200:9200
      - 9300:9300
    networks:
      - elastic
networks:
  elastic:
    driver: bridge

After all node join cluster inside container after run commands.

[root@4b932ee9997a elasticsearch]# bin/elasticsearch-setup-passwords auto -u "http://localhost:9200"
[root@4b932ee9997a elasticsearch]# bin/elasticsearch-setup-passwords auto

Both freeze and not response. How to fix it?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.