How to config Single node for Single Cluster (Standalone Cluster) ElasticSearch

后端 未结 9 716
一向
一向 2021-01-30 17:13

I installed elastic search in my local machine, I want to configure it as the only one single node in the cluster(Standalone Server). it means whenever I create a new index, it

9条回答
  •  甜味超标
    2021-01-30 17:31

    I wanted to do this without having to write/overwrite an elasticsearch.yml in my container. Here it is without a config file

    Set an environment variable prior to starting elasticsearch:

    discovery.type=single-node

    https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

提交回复
热议问题