elasticsearch-dbapi icon indicating copy to clipboard operation
elasticsearch-dbapi copied to clipboard

index creation

Open riyaj8888 opened this issue 2 years ago • 0 comments

can we create elastic search index inside Airflow DAG script?

from elasticsearch import Elasticsearch es = Elasticsearch("http://localhost:9200") es.indices.create(index=index_name, body=mappings)

but i am unable to create index inside that airflwo dag script. I am using Airflow Docker on window machine

riyaj8888 avatar Feb 01 '23 06:02 riyaj8888