RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Code Block |
---|
sudo nano /etc/elasticsearch/elasticsearch.yml |
8. You should see a configuration file with several different entries and descriptions. Scroll down to find the following entries:
#network.host: 192.168.0.1
#http.port: 9200
9.Uncomment the lines by deleting the hash (#) sign at the beginning of both lines and replace 192.168.0.1 with localhost.
Code Block |
---|
network.host: localhost
http.port: 9200
|
10 . Just below, find the Discovery section. We are adding one more line, as we are configuring a single node cluster:
Code Block |
---|
discovery.type: single-node
|
11. By default, JVM heap size is set at 1GB. It is recommended setting it to no more than half the size of your total memory. Open the following file for editing:
Code Block |
---|
sudo nano /etc/elasticsearch/jvm.options
|
12. Find the lines starting with -Xms
and -Xmx and set the value. In reference setup we set it as 4gb
13. Start the Elasticsearch service by running a systemctl command:
It may take some time for the system to start the service. There will be no output if successful.
Code Block |
---|
sudo systemctl start elasticsearch.service
|