simple test DAG
This commit is contained in:
parent
5d073deaa7
commit
379920e21b
|
@ -64,9 +64,7 @@ def bulk_load():
|
||||||
verify=False)
|
verify=False)
|
||||||
|
|
||||||
for key in keys:
|
for key in keys:
|
||||||
key_obj = hook.get_key(key, bucket_name=S3_BUCKET_NAME)
|
s3_obj = hook.get_key(key, bucket_name=S3_BUCKET_NAME)
|
||||||
|
|
||||||
s3_obj = hook.Object(S3_BUCKET_NAME, key)
|
|
||||||
with gzip.GzipFile(fileobj=s3_obj.get()["Body"]) as gzipfile:
|
with gzip.GzipFile(fileobj=s3_obj.get()["Body"]) as gzipfile:
|
||||||
for line in gzipfile:
|
for line in gzipfile:
|
||||||
session.post("https://opensearch-cluster.lot1-opensearch-cluster.svc.local/organization_index/_doc",
|
session.post("https://opensearch-cluster.lot1-opensearch-cluster.svc.local/organization_index/_doc",
|
||||||
|
|
Loading…
Reference in New Issue