Edit es config when I use org.elasticsearch.gradle:build-tools

hi I want to edit elasticsearch.yml when I use org.elasticsearch.gradle:build-tools
when I run gradle clean run, it makes basic elasticsearch.yml like below and run node.

cluster.name: _run
pidfile: path
path.repo: path
path.shared_data: path
node.attr.testattr: test
repositories.url.allowed_urls: http://snapshot.test*
node.max_local_storage_nodes: 1
http.port: 0
transport.tcp.port: 0
cluster.routing.allocation.disk.watermark.low: 1b
cluster.routing.allocation.disk.watermark.high: 1b

I want to set elasticsearch.yml that I made.
how can I do?

You can pass in additional settings (which override those in the generated elasticsearch.yml) with -Dtests.es.settingname=foo. There is no way to override the entire file.

1 Like

thanks a lot!
and I want to set below option

./bin/elasticsearch --security.manager.enabled false

how can I do?
Dtests.es.security.manager.enabled=false is not worked

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