Unable to run Elastic search from ubuntu

Hi All,

i am trying to run elastic search latest version from ubuntu 18.4 but i am no luck . I am getting below error. can you some please suggest how to fix this error and how to make my elk should up. Thanks in advance.

root@ip-172-31-31-85:/# service elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-05-22 13:01:56 UTC; 7s ago
     Docs: http://www.elastic.co
  Process: 5375 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
 Main PID: 5375 (code=exited, status=1/FAILURE)

May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:  in 'reader', line 33, column 1:
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:     path.data: /var/lib/elasticsearch
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:     ^
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:         at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:224)
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:         at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157)
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:         at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:167)
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:         at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:340)
May 22 13:01:56 ip-172-31-31-85 elasticsearch[5375]:         ... 12 more
May 22 13:01:56 ip-172-31-31-85 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
May 22 13:01:56 ip-172-31-31-85 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

looks like your elasticsearch.yml has been modified and is broken.

If you want to share it with us, please format it using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.