This is an example of Elasticsearch in Docker with Eland.
In some cases, you may need to increase the maximum of virtual memory by running
sysctl -w vm.max_map_count=262144
.
-
Check
.env
file and set the values if needed. -
Create a folder for Elasticsearch data:
If you don't change the mode of the folder, you may encounter permission errors with Elasticsearch.
mkdir ./es-data && chmod 777 ./es-data
-
Start Elasticsearch stacks:
docker-compose up -d
-
When Elasticsearch is running, you can copy the cert files to host with the following command:
bash dev-cp-cert.sh
-
Create an environment and install the required packages:
conda create -n es-test python=3.11 conda activate es-test pip install -r requirements.txt
-
Check 2 ipynb files in
notebooks
folder for examples.eland-test.ipynb
: Basic Elasticsearch operations with Eland.eland-over-10000-test.ipynb
: Basic Elasticsearch operations with Eland for over 10000 records.
-
(Optional) Visit
Kibana
with the following URL:https://localhost:5601
The default username is
elastic
and the password is in the.env
file.