Startup error: (not on initial run of new elasticsearch instance)
"org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: cannot start with [discovery.type] set to [single-node] when local node {878bc9e4fbfa}{fwjpwdIvTAet6GrkBXymjg}{dTcQaACOQcO7GmOJds2Gkw}{172.18.0.2}{172.18.0.2:9300}{ml.machine_memory=8341348352, xpack.installed=true, ml.max_open_jobs=20} does not have quorum in voting configuration VotingConfiguration{AICGKQZ1TZux3KwYt0YhfA}..
---.yml rollup (elk stack flavor from GitHub )
elasticsearch:
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx6g -Xms2g"
ELASTIC_PASSWORD: changeme
ulimits:
memlock:
soft: -1
hard: -1
networks:
- elk
---elasticsearch.yml
cluster.name: "docker-cluster"
network.host: 0.0.0.0
node.ml: false
discovery.type: single-node
xpack.license.self_generated.type: basic
So, first instance always runs. Once I get data pushed into it, and attempt to restart, it fails.
I've tried a variety of things with the config, but to no avail. I'm assuming its something to do with the bootstrap checks and/or the existence of ml stuff (possibly from Xpack)?
Any ideas on this?
My main goal is to get a dev instance going that I can load up, destroy, test, and generally push around.
Thanks so much!