Cluster.name:: command not found

Hello guys,
I tried start elasticsearch version 7.5 in a RedHat 7, but I have the following error:

Dec 27 13:48:39 ip-10-142-122-229.cl.latam elasticsearch[12964]: /etc/sysconfig/elasticsearch: line 17: cluster.name:: command not found
Dec 27 13:48:39 ip-10-142-122-229.cl.latam systemd[1]: elasticsearch.service: main process exited, code=exited, status=127/n/a
Dec 27 13:48:39 ip-10-142-122-229.cl.latam systemd[1]: Failed to start Elasticsearch.
Dec 27 13:48:39 ip-10-142-122-229.cl.latam systemd[1]: Unit elasticsearch.service entered failed state.
Dec 27 13:48:39 ip-10-142-122-229.cl.latam systemd[1]: elasticsearch.service failed.

In my elasticsearch.yml, I have the line:

cluster.name: cluster-elk

So, IDK why this error.

Thanks.

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