October 2018
Beginner to intermediate
348 pages
10h
English
By default, Elasticsearch has a config file at /etc/elasticsearch/elasticsearch.yml. This contains all the required parameters related to metadata, data paths, network, memory, and so on. It even has a set of predefined parameters, which can be disabled when not being used. The key parameters we would change are as follows:
cluster.name: <applicationName>node.name: <hostname>node.attr.rack: <rack/az>path.data: /var/lib/elasticsearchpath.logs: /var/log/elasticsearchnetwork.host: 127.0.0.1http.port: 9200
Once these parameters are configured, you can start the Elasticsearch service by using: service elasticsearch start.