I created two different "elasticsearch.1.yml & elasticsearch.2.yml" with respected port numbers (http.port:9200 & http.port:9101), logs and data paths. The mentioned config files located under "elasticsearch-5.1.2/config/" folder. I tried to run "bin/elasticsearch -d" but it shows me only the instance with port 9200.
Can you please tell me where i am wrong and what have to do?
I would like to add some other points to your suggested solution which may help others:
For older version of Elasticsearch the command looks a bit different
e.g. ES version 1.6. bin/elasticsearch -d -Des.path.conf=config1
For each instance you need to create 'config, data, and logs' folders. e.g. create config1, config2, ...
You may change 'cluster.name, node.name, path.data, path.logs and http.port' in config files "elasticsearch.yml" in config1 and config2 folders accordingly
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.