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