Start Elasticsearch
Detailed instructions for the agent.
When to Use
- Use this skill when you need to start Elasticsearch locally before running integration tests. If Elasticsearch is already running, there's no need to use this skill.
Instructions
- Check with
curlthat Elasticsearch is running and accessible. By default, the cluster is expected to be running at http://localhost:9200 with the userelasticand the passwordchangeme. If you can connect to it, there's no need to start a new instance. - If not, run start-local project with:
curl -fsSL https://elastic.co/start-local | ES_LOCAL_PASSWORD="changeme" sh -s -- -v 9.3.1
Please run this command within the
IGNORE_MEdirectory of the project so it's never commited.Note that you can change the version, accordingly to the version of Elasticsearch you want to run. It's normally the one defined in the
pom.xmlfile of the project. See<elasticsearch.version>property for more details.