D
D
Dmitriy2022-02-20 11:25:09
elasticsearch
Dmitriy, 2022-02-20 11:25:09

No living nodes. Elastic + Docker?

Why am I getting No Alive nodes?

docker-compose
elasticsearch:
        image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0
        container_name: learn_es
        ports:
            - "9200:9200"
        environment:
            - cluster.name=docker-cluster
            - bootstrap.memory_lock=true
            - discovery.type=single-node
            - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
        ulimits:
            memlock:
                soft: -1
                hard: -1


curl -XGET 'learn_es:9200' из WEB контейнера из того же docker-compose
curl: (52) Empty reply from server


when connecting, in the code, I write 'learn_es:9200'

and get No Alive nodes
при попытке использовать комманду sysctl vm.max_map_count=262144
получаю sysctl: setting key "vm.max_map_count", ignoring: Read-only file system

в логах получаю
received plaintext http traffic on an https channel, closing connection Netty4HttpChannel

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitriy, 2022-02-20
@dmitriyuvin

xpack.security.enabled=false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question