davidefiocco / dockerized-elasticsearch-indexer

Start and index a dockerized Elasticsearch node using the Elasticsearch Python client

Home Page:https://stackoverflow.com/questions/48711455/create-dockerized-elasticsearch-index-using-a-python-script-running-in-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dockerized-elasticsearch-indexer

Example showing how to index an Elasticsearch db using the Python client within a Docker container, as in https://stackoverflow.com/questions/48711455/create-dockerized-elasticsearch-index-using-a-python-script-running-in-docker/48712414#48712414 starting from a jsonl file contained in the indexer folder.

A Kibana container is added to navigate the indexed dataset. The index is accessible at http://localhost:9200/test and Kibana can be opened at http://localhost:5601.

Run with:

docker-compose build
docker-compose up

Troubleshooting

Check docker-library/elasticsearch#111 in case of troubles in the logs with vm.max_map_count.

About

Start and index a dockerized Elasticsearch node using the Elasticsearch Python client

https://stackoverflow.com/questions/48711455/create-dockerized-elasticsearch-index-using-a-python-script-running-in-docker

License:MIT License


Languages

Language:Python 67.2%Language:Dockerfile 32.8%