Elastic search multiple instances or multiple nodes on the same machine

Hi All,

Is there any opportunity to run multiple instances or multiple nodes of elasticsearch in the same machine. I am getting below on running below command.

start "ElasticSearch1" /I "cmd" "D:\SWTOOLS\Apache\Servers\elasticsearch-5.4.0\bin\elasticsearch.bat -Des.config=%ES_HOME%/config/elasticsearch1.yml"

Error ::
[2017-08-08T16:21:34,753][INFO ][o.e.n.Node ] [01hw791865-node-1] initializing ...
[2017-08-08T16:21:36,972][INFO ][o.e.e.NodeEnvironment ] [01hw791865-node-1] using [1] data paths, mounts [[NewDisk (D:)]], net usable_space [305.8gb], net total_space [318.7gb], spins? [unknown], types [NTFS]
[2017-08-08T16:21:36,972][INFO ][o.e.e.NodeEnvironment ] [01hw791865-node-1] heap size [494.9mb], compressed ordinary object pointers [true]
[2017-08-08T16:21:37,053][INFO ][o.e.n.Node ] [01hw791865-node-1] node name [01hw791865-node-1], node ID [Qcg_1YGcQlGCTaeRnV1sKQ]
[2017-08-08T16:21:37,054][INFO ][o.e.n.Node ] [01hw791865-node-1] version[5.4.0], pid[12972], build[780f8c4/2017-04-28T17:43:27.229Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-08-08T16:21:53,952][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [aggs-matrix-stats]
[2017-08-08T16:21:53,952][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [ingest-common]
[2017-08-08T16:21:53,953][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [lang-expression]
[2017-08-08T16:21:53,953][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [lang-groovy]
[2017-08-08T16:21:53,954][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [lang-mustache]
[2017-08-08T16:21:53,954][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [lang-painless]
[2017-08-08T16:21:53,954][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [percolator]
[2017-08-08T16:21:53,954][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [reindex]
[2017-08-08T16:21:53,954][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [transport-netty3]
[2017-08-08T16:21:53,954][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] loaded module [transport-netty4]
[2017-08-08T16:21:53,955][INFO ][o.e.p.PluginsService ] [01hw791865-node-1] no plugins loaded
[2017-08-08T16:22:33,878][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [01hw791865-node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [es.config] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.4.0.jar:5.4.0]
Caused by: java.lang.IllegalArgumentException: unknown setting [es.config] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:293) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:256) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:139) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.node.Node.(Node.java:342) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.node.Node.(Node.java:242) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap$6.(Bootstrap.java:242) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:242) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.4.0.jar:5.4.0]
... 6 more

For testing?

Just run:

bin/elasticsearch

and then

bin/elasticsearch

in another terminal. Should work OOTB.

If you really need to change some settings, you can pass them using the command line like -Enode.name=node1 or creating a dir config1 and config2 and use -Epath.conf=config1 and -Epath.conf=config2. Don't forget to copy all the config files in each config dir.

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