Hey community,
Currently we have a simple setup with one Dataminer node, one Cassandra nodes and one Elasticsearch node. The Cassandra and Elasticsearch nodes are running on separated Linux VMs.
We would like to know how configure the elasticsearch.yml file.
Currently the elasticsearch doesn't start, so we suspect that something is wrong with the YAML file.
Hi Bruno,
When installing Elasticsearch as a single node, normally it is not required to modify the default configuration to get the service running. The only additional tweak that could be required is to modify the options network.host and network.publish_host so the node can be accessed externally (in this case by the DMA).
Please find below some extra information to troubleshoot the issue:
- You can check if the elasticsearch service is running by performing the following command
systemctl status elasticsearch.service
- The configuration file is located in /etc/elasticsearch/elasticsearch.yml
Since this file is located under /etc, most probably you will need to access them with sudo privileges - The minimal configuration for one single node should be as follows:
# The network address(es) to which the node should bind in order to listen for incoming connections.
# 0.0.0.0 represents the addresses of all available network interfaces.
network.host: 0.0.0.0# The network address that clients and other nodes can use to contact this node.
network.publish_host: <The IP address of the server where this node is running>
- In case you change this file, you will need to restart the services (with sudo privelges):
sudo systemctl restart elasticsearch.service
In case there are issues when restarting the service, you can find the logs in the following folder (default folder path):
/var/log/elasticsearch
Errors related to the service restart can be found in the file:
your-cluster-name.log