I have downloaded elasticsearch tar.gz for every nodes. I have modified elasticsearch.yml for each node.
I made a script for running each nodes. Script is like below :
sh ../node1/bin/elasticsearch
sh ../node2/bin/elasticsearch
when i run the script I get some error on logs but after the errors. The cluster runs with status green.
When I try to make this script as service, it doesn't work.
What is the suggested way to make elasticsearch as service with multi nodes without docker ?
I ve tried rpm. But I can only install one instance of elasticsearch with rpm. OS doesn't give permission to install two same rpm. I want to have 10 nodes so I should install this ten times but how can i do this with same rpm in centos 7 ? If explain that will solve the problem
so, you want to install several instances of Elasticsearch on the same single server?
after that you installed the first one with rpm, you have to duplicate all the folders (i.e. /etc/elasticsearch, /usr/share/elasticsearch, /yourdata/elasticsearch and so). then, you have to duplicate your service file to use every /bin folder
production for your work? your business company or your homework?
from my perspective, several instances on the same server is a thrill (it is a single point of failure) and to be honest I don't see the real benefits. but as I said, it is only my point of view.
at the end, I would probably follow the @warkolm suggestion (docker usage).
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.