I need to have 2 configuration files.
The first (first-elasticsearch.yml) will be package in my jar* file,
and the second will be externalized. https://gist.github.com/1334242
It almost works but something looks strange in the
- builder.settings().loadFromClasspath load the first file and the
path.config is resolved.
- builder.build() instantiate a new InternalNode() which run
- prepareSettings load the file by using
settingsBuilder no contains the new value
~But in the end prepareSettings(..) execute
settingsBuilder.put(pSettings). This will restore the previous values :
Is it a feature to override last loaded properties with the initial
settings ? I can't understand the need of calling the
settingsBuilder.put(pSettings) two times.
@Shay In the same time I think there's a typo in the class name
Perparer instead of Preparer.
*My ES is embeded.