From 432d66ba48300c2f68620f04b49928a04e41ebed Mon Sep 17 00:00:00 2001 From: Harpreet Date: Sun, 3 Dec 2023 21:27:36 +0200 Subject: [PATCH] #14028: fix the sed command issue in ingestion dep script (#14029) * fix the sed command issue in ingestion dep script * remove sql_alchemy_conn from airflow.cfg and use env variable * try execute ingestion dep script without source --- ingestion/ingestion_dependency.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingestion/ingestion_dependency.sh b/ingestion/ingestion_dependency.sh index 5b2b78d0d296..56f03e097ad2 100755 --- a/ingestion/ingestion_dependency.sh +++ b/ingestion/ingestion_dependency.sh @@ -25,7 +25,7 @@ AIRFLOW_ADMIN_PASSWORD=${AIRFLOW_ADMIN_PASSWORD:-admin} OPENMETADATA_SERVER=${OPENMETADATA_SERVER:-"http://openmetadata-server:8585"} -sed -i "s#\(sql_alchemy_conn = \).*#\1${DB_CONN}#" /opt/airflow/airflow.cfg +export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="${DB_CONN}" airflow db init