Install and Configure Elasticsearch and OpenSearch
Please make sure to review the Release Notes for your specific version of Aspire to confirm the dependencies and tools versions required.
Introduction
Aspire 5 requires connectivity to Elasticsearch or OpenSearch.
Please note that these instructions are for Windows only.
Also, this will help you install and configure a basic HTTP setup, ideal for testing. This is not recommended for production settings.
Steps to Install and Configure Elasticsearch
1. Download Elasticsearch.
For this example, we will be using the latest version (9.4.3).
2. Extract it.
For this example, it can be extracted to C:\elasticsearch\elasticsearch-9.4.3.
3. Run the .bat file.
Under C:\elasticsearch\elasticsearch-9.4.3\bin, run elasticsearch.bat
This initializes Elasticsearch. You need to do this before Step 4.
Once you can access https://localhost:9200/, exit the console
4. Configure it.
This is done by editing elasticsearch.yml.
After Step 3, go to C:\elasticsearch\elasticsearch-9.4.3\config
Edit C:\elasticsearch\elasticsearch-9.4.3\config
Set the following parameters to false
xpack.security.enabled
xpack.security.enrollment.enabled
xpack.security.http.ssl:
enabled: false
(Optional) You can delete the following lines
keystore.path: certs/http.p12
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
5. Run the .bat file again.
Under C:\elasticsearch\elasticsearch-9.4.3\bin, run elasticsearch.bat again
6. Navigate to http://localhost:9200/
Steps to Install and Configure OpenSearch
1: Download OpenSearch.
For this example, we will be using OpenSearch 3.7.0.
2. Extract it.
3. Edit the opensearch.yml
Navigate to \opensearch-3.7.0\config
Edit opensearch.yml by adding the following lines:
discovery.type: single-node |
|---|
4. Run opensearch.bat
Navigate to \opensearch-3.7.0\bin.
Run opensearch.bat via command prompt.
5. Once done, navigate to http://localhost:9201/
You are now ready to set up your Aspire distribution. For this, follow the instructions on this page: How to Set Up Aspire On-Premise.