Unable to run multiple ES instances on same server

Hi,

I am trying to run one Master node (with node.data set to false) and one node (with node.data set to true) on the same server. I have copied below directories and renamed it to ‘elasticserach01’ to run second instance of elastic search. I have also updated required configuration files accordingly to run the second instance of elasticserach.

MasterNode:
/usr/share/elasticsearch
/etc/elasticsearch
/var/run/elasticsearch
/etc/sysconfig/elasticsearch
ES_JAVA_OPTS=“-Djna.tmpdir=/elastic/elasticsearch/tmp”
/usr/share/elasticsearch/bin/elasticsearch
/var/log/elasticsearch
/usr/lib/systemd/system/elasticsearch.service
/usr/lib/sysctl.d/elasticsearch.conf
/etc/init.d/elasticsearch

Node:
/usr/share/elasticsearch01
/etc/elasticsearch01
/var/run/elasticsearch01
/etc/sysconfig/elasticsearch01
ES_JAVA_OPTS=“-Djna.tmpdir=/elastic/elasticsearch01/tmp”
/var/log/elasticsearch01
/usr/lib/systemd/system/elasticsearch01.service
/usr/lib/sysctl.d/elasticsearch01.conf
/etc/init.d/elasticsearch01

Even after making the above changes, I am still unable to run the second instance of elasticsearch on the same server. I did refer to some of the blogs and forums to create multuple instances of elasticsearchon the same server, however, I did not find any posible solution to my problem.

Below are couple of links that I refered to.

Any help or suggestion are really appreciated.

Oh wait!! Did I mention that I am a baby when it comes to this technology. I am still learning and trying to understand this new tool to help my company to monitor real time transactions of applications and do some log analysis.

Wish there was option to attach files :frowning_face:

Thank you.
Ravi