id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_78442703
stackoverflow
DATA_ENGINEERING
ERROR - Failed to execute task ' ti' (KeyError: ' ti' in Apache Airflow)
ERROR - Failed to execute task ' ti' (KeyError: ' ti' in Apache Airflow) I have been getting the following error (repeatedly) in Airflow 2.9.0 after upgrading from 2.2.0: 2024-05-07T11:10:43.522+0000] {local_executor.py:139} ERROR - Failed to execute task ' ti'. Traceback (most recent call last): Fi...
https://stackoverflow.com/questions/78442703/error-failed-to-execute-task-ti-keyerror-ti-in-apache-airflow
python, docker, airflow
1,715,086,832
se_78462687
stackoverflow
DATA_ENGINEERING
Latest version of helm building on python 3.8
Latest version of helm building on python 3.8 I am currently in the processing of moving our airflow instances to a K8 cluster. I have been installed the latest version of the helm chart (1.13.1), which gives airflow 2.8.3. I am running this instance on a RHEL 9 server with python 3.11 (base python 3.9, using alias). ...
https://stackoverflow.com/questions/78462687/latest-version-of-helm-building-on-python-3-8
python, kubernetes, airflow, kubernetes-helm
1,715,378,241
se_78511544
stackoverflow
DATA_ENGINEERING
Python Airflow - how can I extract the results from a PythonOperator?
Python Airflow - how can I extract the results from a PythonOperator? I have a dag that calls on a function that returns a PythonOperator. I want to get the results of this task, so that I can pass it to another task. Any ideas if this is possible? Here is roughly what my code looks like: def DAG(self): a...
https://stackoverflow.com/questions/78511544/python-airflow-how-can-i-extract-the-results-from-a-pythonoperator
airflow
1,716,290,886
se_78516360
stackoverflow
DATA_ENGINEERING
Airflow Clearing Tasks
Airflow Clearing Tasks I am running structured spark streaming job and using EmrContainerOperator to trigger the spark job. My requirement is to re-trigger airflow task which has been created using EmrContainerOperator every time the task fails. This needs to be achieved programmatically. Intention is to create infini...
https://stackoverflow.com/questions/78516360/airflow-clearing-tasks
airflow, mwaa
1,716,368,280
se_77204333
stackoverflow
DATA_ENGINEERING
Airflow 2.6: Using runtime config to determine task timeouts on manually triggered DAGs
Airflow 2.6: Using runtime config to determine task timeouts on manually triggered DAGs I have a DAG that users need to occasionally trigger on the UI, with a parameter that determines which subset of data to use. Depending on the subset, the individual tasks can run for 5 minutes, or an hour. I would like to be able ...
https://stackoverflow.com/questions/77204333/airflow-2-6-using-runtime-config-to-determine-task-timeouts-on-manually-trigger
airflow
1,696,014,822
se_78514818
stackoverflow
DATA_ENGINEERING
Dynamic Task Mapping in Airflow - setting sequential dependencies amongst mapped tasks
Dynamic Task Mapping in Airflow - setting sequential dependencies amongst mapped tasks I have a dag that queries a table in bigquery which returns a list of stored procedures to execute which can vary in both the number of stored procedures as well as the actual stored procedure needed to call for a particular pipelin...
https://stackoverflow.com/questions/78514818/dynamic-task-mapping-in-airflow-setting-sequential-dependencies-amongst-mapped
python, google-bigquery, airflow, google-cloud-composer
1,716,335,737
se_78512606
stackoverflow
DATA_ENGINEERING
Detected Zombie job error for using python threads
Detected Zombie job error for using python threads I'm an absolute beginner at using Airflow and have recently been working on an ETL project. I've encountered the following error: [2024-05-21, 13:59:50 UTC] {task_context_logger.py:104} ERROR - Detected zombie job: {'full_filepath': '/usr/local/airflow/dags/main.py', ...
https://stackoverflow.com/questions/78512606/detected-zombie-job-error-for-using-python-threads
airflow, zombie-process
1,716,302,092
se_78507593
stackoverflow
DATA_ENGINEERING
airflow scheduled with dag config parameters
airflow scheduled with dag config parameters I am running an airflow dag, and trying to run it on a schedule. When the dag is triggered by the scheduler, the dag run_config evaluates to None. I tried this, but it did not work for me - Airflow how to set default values for dag_run.conf My code looks something like def ...
https://stackoverflow.com/questions/78507593/airflow-scheduled-with-dag-config-parameters
python, airflow, scheduling
1,716,220,537
se_78510809
stackoverflow
DATA_ENGINEERING
Airflow - login next query param does not match the base_url #
Airflow - login next query param does not match the base_url # I deployed my airflow application behind a Microsoft application gateway. I updated the base_url to match the public IP provided by the application gateway, for example, 1.2.3.4. However, when I try to access the login page, the "next" query parameter refe...
https://stackoverflow.com/questions/78510809/airflow-login-next-query-param-does-not-match-the-base-url
python, azure, airflow
1,716,283,080
se_35668852
stackoverflow
DATA_ENGINEERING
How to configure Airflow dag to run at specific time on daily basis?
How to configure Airflow dag to run at specific time on daily basis? How to configure the Airflow dag to execute at specified time on daily basis no matter what happens, something exactly like crons. I know that similar behaviour could be obtained using TimeSensor, but in this case it depends upon the sensor tasks an...
https://stackoverflow.com/questions/35668852/how-to-configure-airflow-dag-to-run-at-specific-time-on-daily-basis
python, airflow
1,456,570,707
se_78507752
stackoverflow
DATA_ENGINEERING
Airflow BigQueryToMsSqlOperator mssql_conn_id issue
Airflow BigQueryToMsSqlOperator mssql_conn_id issue I have a problem with the deployment of the BigQueryToMsSqlOperator operator. The prolem is that the DAG does not replace the operator I defined, it tries to connect with the default one (‘mssql_default’). This is strange because the database connection variable work...
https://stackoverflow.com/questions/78507752/airflow-bigquerytomssqloperator-mssql-conn-id-issue
google-bigquery, airflow, google-cloud-composer
1,716,222,784
se_78488713
stackoverflow
DATA_ENGINEERING
Airflow - Could not read served logs - 503 Service Unavailable
Airflow - Could not read served logs - 503 Service Unavailable After some changes logs are not visible in Web-UI, but log-file in log-catalog in worker container is OK Airflow 2.7.3, installed in Docker (Portainer) with containers (and with proxy), CeleryExecutor Error f2ad1c31c101 *** Could not read served logs: Ser...
https://stackoverflow.com/questions/78488713/airflow-could-not-read-served-logs-503-service-unavailable
airflow
1,715,850,045
se_78502484
stackoverflow
DATA_ENGINEERING
Airflow Docker - ModuleNotFoundError with python scripts
Airflow Docker - ModuleNotFoundError with python scripts I have been facing some error since yesterday when trying to run my airflow project using docker.I keep getting the ModuleNotFoundError when the code gets to import functions from files at 'scripts' directory. Broken DAG: [/opt/airflow/dags/transport_etl_dag.py...
https://stackoverflow.com/questions/78502484/airflow-docker-modulenotfounderror-with-python-scripts
python, docker, airflow, modulenotfounderror
1,716,119,530
se_53146486
stackoverflow
DATA_ENGINEERING
What is the best way to store login credentials on Airflow?
What is the best way to store login credentials on Airflow? I found out there are lot of ways to store it as variables, hooks and other ways using encryption. I would like to know what's the best way to do it.
https://stackoverflow.com/questions/53146486/what-is-the-best-way-to-store-login-credentials-on-airflow
python, hook, credentials, airflow, directed-acyclic-graphs
1,541,373,878
se_77601952
stackoverflow
DATA_ENGINEERING
How to correctly use @task.kubernetes() decorator to import third-party dependencies?
How to correctly use @task.kubernetes() decorator to import third-party dependencies? I have an Airflow DAG task that I want to run on K8s pod. Here's an example from mymodule import process_data # this is my module import from decouple import AutoConfig # this is externally installed dependency @dag( "model_tra...
https://stackoverflow.com/questions/77601952/how-to-correctly-use-task-kubernetes-decorator-to-import-third-party-dependen
python, kubernetes, airflow, airflow-2.x
1,701,716,365
se_78417599
stackoverflow
DATA_ENGINEERING
How can I create DatabricksSubmitRunOperator tasks dynamically in Airflow?
How can I create DatabricksSubmitRunOperator tasks dynamically in Airflow? I have following use case: I am trying to create an Airflow DAG which will be used to automate historical data load. I am passing 5 arguments to this DAG - jar_path, main_class_name, start_param, end_param, max_run_range. Based on start_param, ...
https://stackoverflow.com/questions/78417599/how-can-i-create-databrickssubmitrunoperator-tasks-dynamically-in-airflow
airflow, azure-databricks, airflow-taskflow
1,714,635,820
se_76644182
stackoverflow
DATA_ENGINEERING
Spark Job succeded in Airflow but no result seeing in Spark UI
Spark Job succeded in Airflow but no result seeing in Spark UI I'm beginner with airflow and spark and I am currently setting up a data pipeline locally using Airflow and Spark. The DAG I want to do has just one task that runs a pyspark job on Spark. The dags folder of my application contains two files: dag-airflow-sp...
https://stackoverflow.com/questions/76644182/spark-job-succeded-in-airflow-but-no-result-seeing-in-spark-ui
pyspark, airflow, spark-submit
1,688,837,528
se_72978592
stackoverflow
DATA_ENGINEERING
airflow 09:43:23.50 ERROR ==> Could not connect to the database - while installing airflow through bitnami helm chart
airflow 09:43:23.50 ERROR ==> Could not connect to the database - while installing airflow through bitnami helm chart I Installed Airflow through bitnami helm chart with the below version CHART NAME: airflow CHART VERSION: 12.5.8 APP VERSION: 2.3.2 and I replace bitnami image with my customized image for airflow ...
https://stackoverflow.com/questions/72978592/airflow-094323-50-error-could-not-connect-to-the-database-while-installi
python, airflow, kubernetes-helm, bitnami, requirements.txt
1,657,792,351
se_78479103
stackoverflow
DATA_ENGINEERING
run a command in docker container during docker compose up
run a command in docker container during docker compose up I have a docker-compose.yaml for local airflow setup. It would setup all airflow services. In the service container airflow-webserver, I want to run a few commands which could be a ssh command or a airflow connections add ... command. The airflow-webserver ser...
https://stackoverflow.com/questions/78479103/run-a-command-in-docker-container-during-docker-compose-up
bash, docker, docker-compose, airflow
1,715,700,237
se_78485118
stackoverflow
DATA_ENGINEERING
How do we unit test a nested `@task` decorated method in apache airflow?
How do we unit test a nested `@task` decorated method in apache airflow? I have a DAG in apache airflow like so @dag( ) def taskflow(): .... @task() def generate_args(): return arglist run_pod = pod_operator( name="name", memory_gb=20, image="myimage", cmds=["poet...
https://stackoverflow.com/questions/78485118/how-do-we-unit-test-a-nested-task-decorated-method-in-apache-airflow
airflow, pytest, airflow-taskflow
1,715,788,227
se_78450965
stackoverflow
DATA_ENGINEERING
In Apache Airflow, how can I exchange data between tasks in different dags, using the Airflow TaskFlow API?
In Apache Airflow, how can I exchange data between tasks in different dags, using the Airflow TaskFlow API? I have 2 dags that look like this (note that the 2nd dag automatically runs after the first - they are linked by an Airflow Dataset). Is there a way for the 2nd dag to retrieve the value returned by the first da...
https://stackoverflow.com/questions/78450965/in-apache-airflow-how-can-i-exchange-data-between-tasks-in-different-dags-usin
airflow, airflow-taskflow
1,715,199,370
se_50124118
stackoverflow
DATA_ENGINEERING
Is it possible to access dag_run.conf from a SubDag?
Is it possible to access dag_run.conf from a SubDag? It looks like you can access a dag_run's conf parameters using the PythonOperator and setting provide_context=true or by using jinja templating + the BashOperator. Is there a built in way to provide access to these values to the SubDagOperator?
https://stackoverflow.com/questions/50124118/is-it-possible-to-access-dag-run-conf-from-a-subdag
airflow
1,525,210,231
se_78477294
stackoverflow
DATA_ENGINEERING
Templating the request message in Airflow GrpcOperator
Templating the request message in Airflow GrpcOperator Airflow's GrpcOperator supports passing template variables in the data field. However, the protobuf-generated message object that needs to go into the data field is evaluated at parse time, which breaks the templates. For example, in the task below, I want to send...
https://stackoverflow.com/questions/78477294/templating-the-request-message-in-airflow-grpcoperator
airflow, grpc, airflow-2.x, grpc-python
1,715,681,092
se_78443142
stackoverflow
DATA_ENGINEERING
Snowflake.py: RemovedInAirflow3Warning: This module is deprecated. Please use `airflow.providers.common.sql.hooks.sql`
Snowflake.py: RemovedInAirflow3Warning: This module is deprecated. Please use `airflow.providers.common.sql.hooks.sql` After upgrading airflow from 2.2.0 to 2.9.0 I have been getting the following warning: snowflake.py:29 RemovedInAirflow3Warning: This module is deprecated. Please use `airflow.providers.common.sql.hoo...
https://stackoverflow.com/questions/78443142/snowflake-py-removedinairflow3warning-this-module-is-deprecated-please-use-a
python, snowflake-cloud-data-platform, airflow
1,715,091,333
se_55352234
stackoverflow
DATA_ENGINEERING
How to dynamically create tasks in airflow
How to dynamically create tasks in airflow I can't figure out how to dynamically create tasks in airflow at schedule time. My Dag is created prior to the knowledge of how many tasks are required at run-time. I.e., On each dag trigger, i would like to pass the directory to be processed to create a list of tasks for the...
https://stackoverflow.com/questions/55352234/how-to-dynamically-create-tasks-in-airflow
python, airflow
1,553,586,925
se_76267487
stackoverflow
DATA_ENGINEERING
How does retry_exponential_backoff work in Airflow tasks?
How does retry_exponential_backoff work in Airflow tasks? How do the parameters retries, retry_delay and retry_exponential_backoff interact? When there is a retry, when is it scheduled? Exponential backoff sounds interesting, but how does it work? e.g. what happens with these parameters? When are the retries scheduled...
https://stackoverflow.com/questions/76267487/how-does-retry-exponential-backoff-work-in-airflow-tasks
airflow
1,684,276,507
se_78461330
stackoverflow
DATA_ENGINEERING
How to Add Extra Column to BigQuery Schema Dynamically via Airflow GCSToBigQueryOperator
How to Add Extra Column to BigQuery Schema Dynamically via Airflow GCSToBigQueryOperator I'm currently working with the Airflow operator GCSToBigQueryOperator and have encountered a scenario where I need to incorporate an ingestion_date into my files stored on Google Cloud Storage (GCS), without directly updating the ...
https://stackoverflow.com/questions/78461330/how-to-add-extra-column-to-bigquery-schema-dynamically-via-airflow-gcstobigquery
google-cloud-platform, google-cloud-storage, airflow
1,715,357,131
se_78467626
stackoverflow
DATA_ENGINEERING
Is there a way to remove zombies in airflow
Is there a way to remove zombies in airflow I'm making an airflow program that needs to convert .tsv to .parquet But I have an error: ERROR - Detected zombie job: {'full_filepath': '/opt/airflow/dags/formatting_data.py', 'processor_subdir': '/opt/airflow/dags', 'msg': "{'DAG Id': 'formatting_data', 'Task Id': 'format_...
https://stackoverflow.com/questions/78467626/is-there-a-way-to-remove-zombies-in-airflow
python, airflow
1,715,512,722
se_78471304
stackoverflow
DATA_ENGINEERING
MWAA(airflow) tasks on abnormally on EKS(k8s)
MWAA(airflow) tasks on abnormally on EKS(k8s) Environments: MWAA(airflow) 2.8.1 requirements.txt astronomer-cosmos==1.3.2 apache-airflow-providers-cncf-kubernetes EKS(k8s) 1.27 DAG code below: from pathlib import Path from airflow import DAG from pendulum import datetime from cosmos.config import ProjectConfig ...
https://stackoverflow.com/questions/78471304/mwaaairflow-tasks-on-abnormally-on-eksk8s
kubernetes, airflow, dbt, cosmos
1,715,592,783
se_75933665
stackoverflow
DATA_ENGINEERING
What is the most efficient way to have airflow trigger a python script?
What is the most efficient way to have airflow trigger a python script? I have a local airflow environment and a couple scripts that I want to schedule to run. I am working on creating a DAG file for each. What is the most efficient way to trigger a python script to run? I can use a PythonOperator in the DAG and hav...
https://stackoverflow.com/questions/75933665/what-is-the-most-efficient-way-to-have-airflow-trigger-a-python-script
python, airflow, directed-acyclic-graphs
1,680,640,751
se_78433644
stackoverflow
DATA_ENGINEERING
How to auto-detect config drift in dag Airflow when I change the task id name in VS Code?
How to auto-detect config drift in dag Airflow when I change the task id name in VS Code? In three step dag pipeline, I changed the task_id for second step and forgot to update it in third step Python code transform_load_data. Is there way for any AI assistant to auto detect and highlight it to me in VS Code? def tran...
https://stackoverflow.com/questions/78433644/how-to-auto-detect-config-drift-in-dag-airflow-when-i-change-the-task-id-name-in
airflow, config, directed-acyclic-graphs, drift
1,714,940,355
se_67268054
stackoverflow
DATA_ENGINEERING
How to install java in an airflow container using docker-compose.yaml
How to install java in an airflow container using docker-compose.yaml I am using this docker-compose.yaml file to run airflow on docker container. https://airflow.apache.org/docs/apache-airflow/2.0.2/docker-compose.yaml I need to install JRE in one of the containers. How do I add instruction to add java to the docker-...
https://stackoverflow.com/questions/67268054/how-to-install-java-in-an-airflow-container-using-docker-compose-yaml
java, docker-compose, airflow
1,619,445,515
se_78444578
stackoverflow
DATA_ENGINEERING
Is there a way to write a file locally using Airflow?
Is there a way to write a file locally using Airflow? I'm using airflow for a project, and I'm a beginner. I'm looking to write a file locally. I tried that (here is my DAG) : from datetime import datetime, timedelta from airflow import DAG from airflow.operators.python import PythonOperator def write_simple_file(**...
https://stackoverflow.com/questions/78444578/is-there-a-way-to-write-a-file-locally-using-airflow
python, airflow
1,715,108,230
se_78460899
stackoverflow
DATA_ENGINEERING
Airflow AttributeError: 'function' object has no attribute 'update_relative' error
Airflow AttributeError: 'function' object has no attribute 'update_relative' error I am testing out airflow, I am running into the below error when implementing the dag. ERROR [airflow.models.dagbag.DagBag] Failed to import: /Users/sbhardwa/airflow/dags/heart_desease/inference_pipeline.py Traceback (mo...
https://stackoverflow.com/questions/78460899/airflow-attributeerror-function-object-has-no-attribute-update-relative-err
airflow
1,715,352,450
se_78459609
stackoverflow
DATA_ENGINEERING
DbtCloudRunJobOperator in Airflow Fails to Detect Successful Job Completion in DBT Cloud: How to Resolve?
DbtCloudRunJobOperator in Airflow Fails to Detect Successful Job Completion in DBT Cloud: How to Resolve? I am using the DbtCloudRunJobOperator in a managed (Google Cloud Composer) Apache Airflow instance to trigger jobs in DBT Cloud. While the DBT Cloud jobs themselves run successfully and complete without any issues...
https://stackoverflow.com/questions/78459609/dbtcloudrunjoboperator-in-airflow-fails-to-detect-successful-job-completion-in-d
python, airflow, google-cloud-composer, dbt-cloud
1,715,338,024
se_77794270
stackoverflow
DATA_ENGINEERING
Run a separate task if the parent task fails in airflow DAG
Run a separate task if the parent task fails in airflow DAG I have a series of tasks in an airflow DAG as below: task1: //do something task2: //do something task3: //do something task4: //do cleanup task1 >> task2 >> task3 ASK: I want to run task4 if any of task1 or task2 fails.
https://stackoverflow.com/questions/77794270/run-a-separate-task-if-the-parent-task-fails-in-airflow-dag
python, airflow, directed-acyclic-graphs
1,704,898,287
se_78459062
stackoverflow
DATA_ENGINEERING
PubSub-Airflow-MSSQL how to load correctly
PubSub-Airflow-MSSQL how to load correctly Please tell me how to correctly build a data flow from PubSub to MS SQL? Maybe there is a link to an article on how to do this correctly? What's on hand: There is someone else's PubSub, which has the topic I need, for which I created the subscription I need. Volume of 5 mill...
https://stackoverflow.com/questions/78459062/pubsub-airflow-mssql-how-to-load-correctly
google-cloud-platform, google-cloud-storage, airflow, publish-subscribe
1,715,331,851
se_78457442
stackoverflow
DATA_ENGINEERING
Running a specific task only from a DAG in Apache Airflow
Running a specific task only from a DAG in Apache Airflow Is there a way in Apache Airflow to run a single task from a DAG on an adhoc basis, controlling whether it runs with only its upstream or downstream tasks without running the whole DAG?, similar to how the dbt CLI allows selecting specific models to run dbt run...
https://stackoverflow.com/questions/78457442/running-a-specific-task-only-from-a-dag-in-apache-airflow
python, airflow
1,715,299,859
se_78453203
stackoverflow
DATA_ENGINEERING
Can I use airflow tags to determine if all DAGs with a certain tag has finished running?
Can I use airflow tags to determine if all DAGs with a certain tag has finished running? I have a number of individual DAGs that are not connected to each other. The one thing that 'connects' them are that they are tagged with US_TAG. I am trying to run a new task after all of these DAGs (with the US_TAG) have finishe...
https://stackoverflow.com/questions/78453203/can-i-use-airflow-tags-to-determine-if-all-dags-with-a-certain-tag-has-finished
airflow, airflow-taskflow
1,715,243,355
se_78450469
stackoverflow
DATA_ENGINEERING
Rendering jinja templated parameters before rendering sql query
Rendering jinja templated parameters before rendering sql query I have a DAG with multiple SQL tasks (and .sql files) referencing the same template variable called refdate (each file may reference this variable multiple times within the query code). Let's assume the sql file looks like this: select '{{params.refdate}}...
https://stackoverflow.com/questions/78450469/rendering-jinja-templated-parameters-before-rendering-sql-query
python, sql, airflow, jinja2
1,715,191,649
se_66211619
stackoverflow
DATA_ENGINEERING
Passing JSON file as string in environment variable for composer airflow from terraform script
Passing JSON file as string in environment variable for composer airflow from terraform script I am creating a composer from terraform where I want to pass a json as input variable Terraform code: software_config{ env_variables{ AIRFLOW_VAR_MYJSON ="{'__comment1__': 'This the global section', 'project_id':'testpr...
https://stackoverflow.com/questions/66211619/passing-json-file-as-string-in-environment-variable-for-composer-airflow-from-te
airflow, google-cloud-composer, terraform-provider-gcp
1,613,406,021
se_78435224
stackoverflow
DATA_ENGINEERING
Airflow import error after updating from version 2.0.2 to 2.8.1
Airflow import error after updating from version 2.0.2 to 2.8.1 I have a local dev environment where I am trying to update airflow version from 2.0.2 to 2.8.1. But I am getting error as below: If I go back to 2.0.2 things works as expected. Does anyone has some idea what is going on here. local-runner-1 | The above e...
https://stackoverflow.com/questions/78435224/airflow-import-error-after-updating-from-version-2-0-2-to-2-8-1
docker, airflow, airflow-2.x
1,714,981,719
se_78424454
stackoverflow
DATA_ENGINEERING
Unable to start a any task in Google cloud composer using DataflowCreatePythonJobOperator
Unable to start a any task in Google cloud composer using DataflowCreatePythonJobOperator import airflow from airflow import DAG from airflow.providers.google.cloud.operators.dataflow import DataflowCreatePythonJobOperator from datetime import datetime, timedelta default_args = { 'start_date': airflow.utils.dates...
https://stackoverflow.com/questions/78424454/unable-to-start-a-any-task-in-google-cloud-composer-using-dataflowcreatepythonjo
airflow, directed-acyclic-graphs, google-cloud-composer
1,714,736,122
se_78427683
stackoverflow
DATA_ENGINEERING
Airflow BigQueryInsertJobOperator does not render jinja2 template file when called manually
Airflow BigQueryInsertJobOperator does not render jinja2 template file when called manually I am trying to call BigQueryInsertJobOperator manually inside a PythonOperator like below, but SQL template is not generated: def some_func(**kwargs): # ... append_tmp_to_raw_and_clean_after = BigQueryInsertJobOperator( tas...
https://stackoverflow.com/questions/78427683/airflow-bigqueryinsertjoboperator-does-not-render-jinja2-template-file-when-call
google-bigquery, airflow
1,714,793,440
se_78070150
stackoverflow
DATA_ENGINEERING
How can I successfully start the apache airflow db
How can I successfully start the apache airflow db I have been trying to install the apache airflow on my machine using the pip installation command. I successfully installed the airflow in a virtual environment. When I tried running the "airflow standalone" or "airflow db migrate" it keeps giving me an error saying ...
https://stackoverflow.com/questions/78070150/how-can-i-successfully-start-the-apache-airflow-db
python, airflow
1,709,062,756
se_78423394
stackoverflow
DATA_ENGINEERING
Airflow scheduler not scheduling jobs but is able to manually trigger DAG runs
Airflow scheduler not scheduling jobs but is able to manually trigger DAG runs I have a docker-compose.yml file that looks like this, and when it starts up, everything looks good. I can visit the webserver page, the scheduler looks good. And I can manually trigger the job. However, I set a test schedule interval of 1 ...
https://stackoverflow.com/questions/78423394/airflow-scheduler-not-scheduling-jobs-but-is-able-to-manually-trigger-dag-runs
python, airflow
1,714,723,288
se_51892190
stackoverflow
DATA_ENGINEERING
Passing return value from operator to following operator in Airflow
Passing return value from operator to following operator in Airflow I'm trying to give a string list to the source_objects field for the GoogleCloudStorageToBigQueryOperator but with the following code I get an error: string indices must be integers, not unicode Things I don't know : How do I get the return value o...
https://stackoverflow.com/questions/51892190/passing-return-value-from-operator-to-following-operator-in-airflow
python, airflow, google-cloud-composer
1,534,497,554
se_78353287
stackoverflow
DATA_ENGINEERING
How can I connect to Bigquery in Airflow using an AWS federated token json?
How can I connect to Bigquery in Airflow using an AWS federated token json? I need to build an airflow connector that reads from google bigquery, despite being hosted on aws. My devops team have created a secret json in the format of: { "type": "external_account", "audience": xx, "subject_token_type": xx, "ser...
https://stackoverflow.com/questions/78353287/how-can-i-connect-to-bigquery-in-airflow-using-an-aws-federated-token-json
python, amazon-web-services, google-bigquery, airflow, federated
1,713,525,696
se_58291840
stackoverflow
DATA_ENGINEERING
Is it possible to use redis cluster instead of sentinel as celery backend for airflow cluster
Is it possible to use redis cluster instead of sentinel as celery backend for airflow cluster I am trying to setup an airflow cluster. I am planning to use redis as celery backend. I have seen people using sentinel redis successfully. I wanted to know if it is possible to use redis cluster instead? If not then why not...
https://stackoverflow.com/questions/58291840/is-it-possible-to-use-redis-cluster-instead-of-sentinel-as-celery-backend-for-ai
redis, celery, airflow
1,570,558,034
se_45215164
stackoverflow
DATA_ENGINEERING
Airflow CROSSSLOT Keys in request don't hash to the same slot error using AWS ElastiCache
Airflow CROSSSLOT Keys in request don't hash to the same slot error using AWS ElastiCache I am running apache-airflow 1.8.1 on AWS ECS and I have an AWS ElastiCache cluster (redis 3.2.4) running 2 shards / 2 nodes with multi-AZ enabled (clustered redis engine). I've verified that airflow can access the host/port o...
https://stackoverflow.com/questions/45215164/airflow-crossslot-keys-in-request-dont-hash-to-the-same-slot-error-using-aws-el
redis, amazon-elasticache, airflow
1,500,554,678
se_78400487
stackoverflow
DATA_ENGINEERING
airflow 2.9 schedule DAG on the first weekday day of the month every month
airflow 2.9 schedule DAG on the first weekday day of the month every month I would like to schedule a DAG on the first weekday of the month for every month. So for example this years it would have been scheduled at: 2024-01-01 2024-02-01 2024-03-01 2024-04-01 2024-05-01 2024-06-03 -----> here the third because the fi...
https://stackoverflow.com/questions/78400487/airflow-2-9-schedule-dag-on-the-first-weekday-day-of-the-month-every-month
python, airflow
1,714,364,917
se_78400487
stackoverflow
DATA_ENGINEERING
airflow 2.9 schedule DAG on the first weekday day of the month every month
airflow 2.9 schedule DAG on the first weekday day of the month every month I would like to schedule a DAG on the first weekday of the month for every month. So for example this years it would have been scheduled at: 2024-01-01 2024-02-01 2024-03-01 2024-04-01 2024-05-01 2024-06-03 -----> here the third because the fi...
https://stackoverflow.com/questions/78400487/airflow-2-9-schedule-dag-on-the-first-weekday-day-of-the-month-every-month
python, airflow
1,714,364,917
se_78416317
stackoverflow
DATA_ENGINEERING
move files between two folders in a GCS bucket
move files between two folders in a GCS bucket I have a DAG task like this: move_files = GCSToGCSOperator( task_id='move_files', impersonation_chain='service_account', source_bucket='ingestion_bucket', source_object='ABCD/Daily_data*.csv', destination_bucket='ingestion_bucket', destination_obj...
https://stackoverflow.com/questions/78416317/move-files-between-two-folders-in-a-gcs-bucket
google-cloud-storage, airflow, bucket, data-transfer-objects, google-cloud-data-transfer
1,714,604,797
se_77232293
stackoverflow
DATA_ENGINEERING
MWAA CLI - Stop Dags Execution
MWAA CLI - Stop Dags Execution I'm using AWS MWAA 2.6.3 and I'm trying to mark an execution of dag as Failed using run_id, is there anyway to do that using boto3 MWAA, since we can't use the backend APIs; thanks!
https://stackoverflow.com/questions/77232293/mwaa-cli-stop-dags-execution
amazon-web-services, airflow, mwaa
1,696,445,848
se_76592428
stackoverflow
DATA_ENGINEERING
Issue with templating in Airflow PostgresOperator
Issue with templating in Airflow PostgresOperator I have been having issues trying to template an Airflow Variable into a PostgresOperator sql script. My sql script looks like: UNLOAD('SELECT *, trunc(updated_at) as dt FROM prodreadcopy.cmd_{{ params.table_name }}') TO 's3://{{ params.datalake_bucket }}/bronze/learnin...
https://stackoverflow.com/questions/76592428/issue-with-templating-in-airflow-postgresoperator
python, postgresql, amazon-s3, airflow, mwaa
1,688,162,498
se_78403057
stackoverflow
DATA_ENGINEERING
How to Automate service now tickets using airflow for dag failure
How to Automate service now tickets using airflow for dag failure I want to create service now ticket whenever there is dag failure in airflow and i want to automate this by using airflow and python api call I'm not getting how to do API call and set in airflow connection if you found any reference share it
https://stackoverflow.com/questions/78403057/how-to-automate-service-now-tickets-using-airflow-for-dag-failure
google-cloud-platform, airflow, directed-acyclic-graphs, servicenow, airflow-api
1,714,397,179
se_77966666
stackoverflow
DATA_ENGINEERING
connection between airflow and vault
connection between airflow and vault I am using Helm Chart airflow version 2.7.0 and hashicrop vault 1.7 in Kubernetes i am trying to establish a connection between the airflow and vault secrets: backend: airflow.providers.hashicorp.secrets.vault.VaultBackend backend_kwargs: backend_kwargs: '{"connections_path": "con...
https://stackoverflow.com/questions/77966666/connection-between-airflow-and-vault
airflow, airflow-api
1,707,464,866
se_78399772
stackoverflow
DATA_ENGINEERING
Apache Airflow using Windows (with Docker) not working properly
Apache Airflow using Windows (with Docker) not working properly I'm being able to launch Apache Airflow through Docker in Windows. Actually, I enter: "localhost:8080" in the browser and I can get to Apache Airflow's DAGs interface. However, when I try to build a DAG in Python, as soon as I try to import the package, t...
https://stackoverflow.com/questions/78399772/apache-airflow-using-windows-with-docker-not-working-properly
python, docker, airflow
1,714,341,877
se_78397835
stackoverflow
DATA_ENGINEERING
Can Airflow running on a windows host in docker container access database on the windows network of the host?
Can Airflow running on a windows host in docker container access database on the windows network of the host? I am running Airflow in docker container and can succcessfully connect to resources not protected by corporate firewall. I am not able to access any resources within firewall except for local folders in the ho...
https://stackoverflow.com/questions/78397835/can-airflow-running-on-a-windows-host-in-docker-container-access-database-on-the
windows, docker, airflow, windows-firewall
1,714,299,953
se_78313035
stackoverflow
DATA_ENGINEERING
Using S3DeleteObjectsOperator to only delete files and not the subfolder
Using S3DeleteObjectsOperator to only delete files and not the subfolder Is there a way to use S3DeleteObjectsOperator in Airflow to just delete files and not the subfolder in s3? delete_operator = S3DeleteObjectsOperator( task_id=f't0_s3_cleanup_task_{{keys}}', aws_conn_id='aws_s3', bucket=var_s3_bucket, ...
https://stackoverflow.com/questions/78313035/using-s3deleteobjectsoperator-to-only-delete-files-and-not-the-subfolder
airflow
1,712,869,725
se_78348249
stackoverflow
DATA_ENGINEERING
Intermittent File Not Found error in MWAA
Intermittent File Not Found error in MWAA I'm running a DAG every minute that gets exchange rates from an API, puts them in a CSV and uploads them to an S3 bucket. However, intermittently I get this error: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/airflow/exchange/exchange_rates_2024041814190...
https://stackoverflow.com/questions/78348249/intermittent-file-not-found-error-in-mwaa
airflow, mwaa
1,713,450,333
se_78389660
stackoverflow
DATA_ENGINEERING
Airflow connection error with Minio bucket
Airflow connection error with Minio bucket I'm trying to set up an airflow DAG triggered by file uploads to a Minio bucket. However, I'm stuck on configuring the connection in airflow. After providing these information, I ran a test and got this error message: 'EndpointConnectionError' error occurred while testing con...
https://stackoverflow.com/questions/78389660/airflow-connection-error-with-minio-bucket
amazon-web-services, airflow, minio
1,714,125,524
se_78396628
stackoverflow
DATA_ENGINEERING
Airflow - Problem running the dag iterations sequentially inside a nested loop
Airflow - Problem running the dag iterations sequentially inside a nested loop TL;DR I am using Airflow to run a set of tasks(operators) for each iteration combination inside a nested loop. But instead of iterations running sequentially, all the iterations start executing tasks parallelly. Detailed problem statement l...
https://stackoverflow.com/questions/78396628/airflow-problem-running-the-dag-iterations-sequentially-inside-a-nested-loop
python, airflow, workflow, directed-acyclic-graphs, airflow-2.x
1,714,259,577
se_78389969
stackoverflow
DATA_ENGINEERING
How to write a proper Airflow semaphores between dags
How to write a proper Airflow semaphores between dags I have about 15 workflows that need to run on different schedules or with different triggers. But the orchestration that I need means that some workflows aren't allowed to run when some others are running and need to be differed. I am trying to write a pretty and e...
https://stackoverflow.com/questions/78389969/how-to-write-a-proper-airflow-semaphores-between-dags
python, airflow, semaphore
1,714,129,234
se_76772947
stackoverflow
DATA_ENGINEERING
How to template database in Airflow SQLExecuteQueryOperator
How to template database in Airflow SQLExecuteQueryOperator I have an Airflow dag with a PostgresOperator to execute a SQL query. I want to switch to different database(using same connection) with config (run w/config). But it gives an error database "{{ dag_run.conf['database'] }}" does not exist I try to create a cu...
https://stackoverflow.com/questions/76772947/how-to-template-database-in-airflow-sqlexecutequeryoperator
python, sql, airflow
1,690,385,891
se_78380522
stackoverflow
DATA_ENGINEERING
Handle async packages in Python Tasks inside of Airflow
Handle async packages in Python Tasks inside of Airflow I'm dealing with an annoying error on my local Airflow setup. I use a LocalExecutor, with a MySQL database (if that helps). My task looks something like that: @task() def pdf_to_text_task() -> None: file_storage_instance = get_file_storage_instance_from_task...
https://stackoverflow.com/questions/78380522/handle-async-packages-in-python-tasks-inside-of-airflow
python, airflow
1,713,983,002
se_55973680
stackoverflow
DATA_ENGINEERING
how to implement airflow DAG in a loop
how to implement airflow DAG in a loop I just started with Airflow. I want to set up a DAG in a loop, where the next DAG starts when the previous DAG is completed. Here is the work flow that I want to achieve: list_of_files = [......] for file in list_of_files: dag = DAG('pipeline', default_args=default_args, sche...
https://stackoverflow.com/questions/55973680/how-to-implement-airflow-dag-in-a-loop
python, airflow
1,556,900,158
se_78376846
stackoverflow
DATA_ENGINEERING
How to Pass Parameters to Airflow DAG from UI in the Latest Version 2.8.2
How to Pass Parameters to Airflow DAG from UI in the Latest Version 2.8.2 Earlier we are using Airflow V2.5.0. In this version we can pass parameters to Airflow DAG in the form of key values by choosing the Trigger DAG w/config option in trigger button in the Airflow UI. Now we upgraded the Airflow Version to 2.8.2.I...
https://stackoverflow.com/questions/78376846/how-to-pass-parameters-to-airflow-dag-from-ui-in-the-latest-version-2-8-2
airflow
1,713,945,786
se_78368456
stackoverflow
DATA_ENGINEERING
DBT incremental model with custom refresh
DBT incremental model with custom refresh I have an incremental DBT model with insert_override scheme. Model runs hourly through Airflow DAG incrementally by deleting and updating past 2 days of data. In case of some source schema change or missing data in derived table, an ad-hoc DAG is triggered to run the model wit...
https://stackoverflow.com/questions/78368456/dbt-incremental-model-with-custom-refresh
airflow, dbt, incremental
1,713,813,519
se_78367882
stackoverflow
DATA_ENGINEERING
How to define Dag dependency
How to define Dag dependency I have a requirement where I have 3 DAGS(DAG A , DAG B, DAG C) for three different instances which are scheduled at morning 9 AM everyday.. Each DAG loads data to staging tables in BigQuery and after that a SP is created in curated layer which basically does the Union all of the tables fr...
https://stackoverflow.com/questions/78367882/how-to-define-dag-dependency
python-3.x, google-cloud-platform, google-bigquery, airflow, google-cloud-composer
1,713,805,926
se_78358878
stackoverflow
DATA_ENGINEERING
Running `cc --version` gave "[Errno 13] Permission denied: 'cc'" when trying to pip install pyportfolio opt in a docker build using airflow base image
Running `cc --version` gave "[Errno 13] Permission denied: 'cc'" when trying to pip install pyportfolio opt in a docker build using airflow base image I am creating a apache airflow app which requires the use of python packages pyportfolioopt or cvxpy. In the dockerfile i am currently using apache/ai...
https://stackoverflow.com/questions/78358878/running-cc-version-gave-errno-13-permission-denied-cc-when-trying-to
docker, docker-compose, airflow, cvxpy
1,713,629,013
se_74511760
stackoverflow
DATA_ENGINEERING
Airflow Helm - how to override default postgres credentials?
Airflow Helm - how to override default postgres credentials? I'm using the official Airflow Helm to try out the new LocalKubernetesExecutor feature. However, I also wanted the following: allow helm to bring up the postgresql container change the credentials, username and database for that container. I don't really k...
https://stackoverflow.com/questions/74511760/airflow-helm-how-to-override-default-postgres-credentials
airflow, kubernetes-helm
1,668,976,280
se_78293502
stackoverflow
DATA_ENGINEERING
How do I pass xcom to traditional operator from task created using @task decorator?
How do I pass xcom to traditional operator from task created using @task decorator? I'm trying to get my head around the TaskFlow API & XCom in airflow and am getting stuck, hoping someone here can help. I'm using EmrServerlessCreateApplicationOperator and I want to pass a value to it from another task which has been ...
https://stackoverflow.com/questions/78293502/how-do-i-pass-xcom-to-traditional-operator-from-task-created-using-task-decorat
airflow, airflow-taskflow, emr-serverless
1,712,589,186
se_78360119
stackoverflow
DATA_ENGINEERING
how to create Mwaa/airflow dynamic sequentials tasks
how to create Mwaa/airflow dynamic sequentials tasks I have a requirement to create a dynamic mwaa/airflow which needs to create sequential tasks (not dynamic task mapping ) dynamically based on task list. example1 : Task list =["task1","task2","task3"] output = start>>task1>>task2>>task3>>end example2 : tasklist =...
https://stackoverflow.com/questions/78360119/how-to-create-mwaa-airflow-dynamic-sequentials-tasks
python, amazon-web-services, airflow, key-value
1,713,660,618
se_68308572
stackoverflow
DATA_ENGINEERING
AWS MWAA/Apache airflow: how to debug on_failure_callback itself
AWS MWAA/Apache airflow: how to debug on_failure_callback itself Have a dag like this: import os from datetime import timedelta from xxx import on_failure_opsgenie from airflow import DAG from airflow.operators.python import PythonOperator from airflow.utils.dates import days_ago DAG_ID = os.path.basename(__file_...
https://stackoverflow.com/questions/68308572/aws-mwaa-apache-airflow-how-to-debug-on-failure-callback-itself
amazon-web-services, airflow, mwaa
1,625,777,989
se_78335534
stackoverflow
DATA_ENGINEERING
Organising DAG Tags in Airflow
Organising DAG Tags in Airflow I have a two DAGs, example1 and example2. example1 is given tags as ['toy', 'umbrella'] and example1 is given tags as ['toy', 'ball']. In the airflow UI, the tags are displayed as toy umbrella for example1 and ball toy for example2. How to have tags displayed for example2 as toy ball. i...
https://stackoverflow.com/questions/78335534/organising-dag-tags-in-airflow
python, airflow, airflow-2.x
1,713,279,850
se_78349765
stackoverflow
DATA_ENGINEERING
firebird extraction 'utf-8' codec can't decode byte 0xe3 in position
firebird extraction 'utf-8' codec can't decode byte 0xe3 in position I'm trying to extract data from a Firebird database using Python, but I keep encountering the same error no matter what encoding I try. 'utf-8' codec can't decode byte 0xe3 in position def get_conn(self): conn_id = self.get_connecti...
https://stackoverflow.com/questions/78349765/firebird-extraction-utf-8-codec-cant-decode-byte-0xe3-in-position
python, airflow, extract, firebird, encode
1,713,466,722
se_70585634
stackoverflow
DATA_ENGINEERING
How to stop airflow running in docker?
How to stop airflow running in docker? I followed this guide to start airflow with docker-compose. However, I cannot bring it down gracefully. The containers keep running. When I try to stop/kill them I get a permission denied error, even when run as sudo. sudo docker container stop $(docker ps -q) >>> Error response...
https://stackoverflow.com/questions/70585634/how-to-stop-airflow-running-in-docker
docker-compose, airflow
1,641,334,181
se_62404939
stackoverflow
DATA_ENGINEERING
Airflow marks dataflow task as failed but it actually succeeded
Airflow marks dataflow task as failed but it actually succeeded I am using gcloud. With Composer I have an airflow environment that schedules diffferent task pipelines. One of those pipelines consist in: few tasks to prepare for the dataflow job The Dataflow job Some tasks that will exploit the results of the jobs...
https://stackoverflow.com/questions/62404939/airflow-marks-dataflow-task-as-failed-but-it-actually-succeeded
airflow, google-cloud-dataflow, google-cloud-composer
1,592,298,555
se_78348182
stackoverflow
DATA_ENGINEERING
Airflow - K8s- Unable to mount HostPath using KubenetesPodOperator
Airflow - K8s- Unable to mount HostPath using KubenetesPodOperator I have a ADF's Airflow managed instance provisioned. And, I'm trying to schedule a DAG. In this DAG, I'm trying to run a shell script which is present in the HOSTPATH "/opt/airflow/dags" using KubernetesPodOperator. The shell script will submit some ku...
https://stackoverflow.com/questions/78348182/airflow-k8s-unable-to-mount-hostpath-using-kubenetespodoperator
python, kubernetes, airflow, directed-acyclic-graphs, kubernetespodoperator
1,713,449,842
se_72526035
stackoverflow
DATA_ENGINEERING
Permission denied: 'dbt_modules'
Permission denied: 'dbt_modules' I get this error running dbt deps. Am I missing something in the dockerfile to provide access to dbt_modules? I can't seem to find where it's located or what dbt_modules even is in the documentation. I've provided the code to several yml files. Thanks in advance Traceback 2022-...
https://stackoverflow.com/questions/72526035/permission-denied-dbt-modules
python, docker, airflow, dbt
1,654,577,193
se_78335371
stackoverflow
DATA_ENGINEERING
Airflow trigger a task only when a particular task is success
Airflow trigger a task only when a particular task is success I have an use case where I want to execute a task in airflow only when a particular task is success. Dag is like as below A --> B -- --> D -> E -> F -> G | --> C After the task B is finished successfully it goes to either C or D de...
https://stackoverflow.com/questions/78335371/airflow-trigger-a-task-only-when-a-particular-task-is-success
python, airflow
1,713,278,208
se_78340704
stackoverflow
DATA_ENGINEERING
git permission denied error in airflow dag when access git in subprocess or bashoperator
git permission denied error in airflow dag when access git in subprocess or bashoperator I'm using Airflow on my local env using Docker Compose The Docker compose I'm using is https://airflow.apache.org/docs/apache-airflow/2.9.0/docker-compose.yaml Here are the docker compose ps airflow-scheduler-1 airflow-triggerer-1...
https://stackoverflow.com/questions/78340704/git-permission-denied-error-in-airflow-dag-when-access-git-in-subprocess-or-bash
python, git, subprocess, airflow, airflow-2.x
1,713,354,359
se_78327292
stackoverflow
DATA_ENGINEERING
How to implement open lineage for apache/airflow:2.8.4 image?
How to implement open lineage for apache/airflow:2.8.4 image? I am following this document https://airflow.apache.org/docs/apache-airflow-providers-openlineage/1.6.0/index.html to implement open lineage for operators like snowflake and data bricks. I have tried everything but not getting any appropriate results. I am ...
https://stackoverflow.com/questions/78327292/how-to-implement-open-lineage-for-apache-airflow2-8-4-image
airflow, airflow-2.x
1,713,172,494
se_78336105
stackoverflow
DATA_ENGINEERING
Generate dynamic tasks with Airflow with .expand
Generate dynamic tasks with Airflow with .expand I have the a DAG with the following structure: with DAG( # configs go here ) as dag: def get_intervals() # logic to retrieve some data from CloudSQL return intervals # intervals looks like: [['0'], ['10'], ['50'], ['100']] ...
https://stackoverflow.com/questions/78336105/generate-dynamic-tasks-with-airflow-with-expand
python, airflow, google-cloud-composer
1,713,285,570
se_78319594
stackoverflow
DATA_ENGINEERING
is it possible to create different types of Airflow worker pods and use them for different DAGs/Tasks?
is it possible to create different types of Airflow worker pods and use them for different DAGs/Tasks? Is it possible to specify multiple types of worker pods (Kubernetes pods) based on different configurations like CPU allocation, RAM allocation, Docker Image to use for container creation, etc? and then specify on wh...
https://stackoverflow.com/questions/78319594/is-it-possible-to-create-different-types-of-airflow-worker-pods-and-use-them-for
docker, kubernetes, airflow, microservices
1,712,985,069
se_78169347
stackoverflow
DATA_ENGINEERING
Airflow logs copied to GCS but not reflecting in Airflow UI
Airflow logs copied to GCS but not reflecting in Airflow UI I have deployed the latest airflow using helm and I have configured the logs to be pushed to GCS. I can see that logs are being pushed to GCS bucket however Airflow UI is not reflecting them. This is what I see in UI logs *** No logs found in GCS; ti=%s <Task...
https://stackoverflow.com/questions/78169347/airflow-logs-copied-to-gcs-but-not-reflecting-in-airflow-ui
airflow
1,710,531,923
se_78318220
stackoverflow
DATA_ENGINEERING
Airflow instance in GCP Composer Webserver / Scheduler down
Airflow instance in GCP Composer Webserver / Scheduler down We have Airflow installed using GCP composer and all of us sudden Webserver / scheduler went down. We just tried restarting by updating some dummy variables or worker nodes and always we are getting below error Error: UPDATE operation on this environment fail...
https://stackoverflow.com/questions/78318220/airflow-instance-in-gcp-composer-webserver-scheduler-down
google-cloud-platform, airflow, google-kubernetes-engine, google-cloud-composer
1,712,947,760
se_53248759
stackoverflow
DATA_ENGINEERING
Airflow deprecation warning Invalid arguments were passed
Airflow deprecation warning Invalid arguments were passed I have the following code on Airflow 1.9: import_op = MySqlToGoogleCloudStorageOperator( task_id='import', mysql_conn_id='oproduction', google_cloud_storage_conn_id='gcpm', provide_context=True, approx_max_file_size_bytes = 100000000, #100M...
https://stackoverflow.com/questions/53248759/airflow-deprecation-warning-invalid-arguments-were-passed
airflow
1,541,939,275
se_45869390
stackoverflow
DATA_ENGINEERING
Task with no status leads to DAG failure
Task with no status leads to DAG failure I have a DAG that fetches data from Elasticsearch and ingests into the data lake. The first task, BeginIngestion, opens in several tasks (one for each resource), and these tasks open in more tasks (one for each shard). After the shards are fetched, the data is uploaded to S3 an...
https://stackoverflow.com/questions/45869390/task-with-no-status-leads-to-dag-failure
airflow
1,503,602,327
se_78312133
stackoverflow
DATA_ENGINEERING
How to parameterize the SQL file dynamically to execute in Airflow BigQuery Operator - GCP
How to parameterize the SQL file dynamically to execute in Airflow BigQuery Operator - GCP I have a case where I need to pick the SQL file dynamically based on the given condition and need to pass it to BigqueryOperator to execute in DAG. # airflow variable SQL1 = 'SQL1.sql' SQL2 = 'SQL2.sql' SQL_to_run = '' def cond...
https://stackoverflow.com/questions/78312133/how-to-parameterize-the-sql-file-dynamically-to-execute-in-airflow-bigquery-oper
google-cloud-platform, google-bigquery, airflow, astronomer
1,712,856,948
se_78025473
stackoverflow
DATA_ENGINEERING
How to enable test connection button in Airflow in v2.7.1
How to enable test connection button in Airflow in v2.7.1 Test connection button is disabled in Airflow because I am using 2.7 + version. How to enable it? I am not sure of steps. Please guide. Also I have installed Airflow with Kubernetes helm chart. Not sure where I need to make change?
https://stackoverflow.com/questions/78025473/how-to-enable-test-connection-button-in-airflow-in-v2-7-1
airflow, airflow-2.x, airflow-webserver, airflow-taskflow
1,708,414,594
se_78199225
stackoverflow
DATA_ENGINEERING
Apache Airflow and Oracle Connection
Apache Airflow and Oracle Connection I am trying to read data from a local oracle database (Oracle Database 11g Release 11.2.0.4.0 - 64bit Production). I have created my own docker image: # Use the base Apache Airflow image FROM apache/airflow:2.8.3 # Set environment variables for the Oracle Instant Client ENV ORACLE_...
https://stackoverflow.com/questions/78199225/apache-airflow-and-oracle-connection
python, oracle-database, airflow, python-oracledb
1,711,017,294
se_78303994
stackoverflow
DATA_ENGINEERING
Issue while running the Maria DB script docker-composer. Can&#39;t initialize batchreadline may be the input source is a directory or a block device
Issue while running the Maria DB script docker-composer. Can&#39;t initialize batchreadline may be the input source is a directory or a block device Part of docker-compose file: mysql: image: mariadb:10.8.3 # Uncomment below when on Mac M1 # platform: linux/arm64/v8 command: --default-authentication...
https://stackoverflow.com/questions/78303994/issue-while-running-the-maria-db-script-docker-composer-cant-initialize-batchr
docker, yaml, mariadb, airflow
1,712,747,332
se_74731152
stackoverflow
DATA_ENGINEERING
Not Able to Install Geopandas library using docker
Not Able to Install Geopandas library using docker I want to build a Docker container with airflow. The app requires geospatial packages like Geopandas. When trying to build the Docker Image it fails when trying to install Fiona, it says " FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config': 'gdal-co...
https://stackoverflow.com/questions/74731152/not-able-to-install-geopandas-library-using-docker
airflow, geopandas, gdal, docker-build
1,670,506,823
se_78304182
stackoverflow
DATA_ENGINEERING
Airflow: Requesting run_id during a manual trigger
Airflow: Requesting run_id during a manual trigger Context I have created an Airflow DAG aimed at processing data dumps. Each dump has a unique ID, and I wish for this ID to correspond to the run_id during manual triggering of the DAG. Essentially, this allows me to ensure the uniqueness of the processing for each dum...
https://stackoverflow.com/questions/78304182/airflow-requesting-run-id-during-a-manual-trigger
python, airflow
1,712,749,531
se_76223726
stackoverflow
DATA_ENGINEERING
Error Airflow, DPY-3015: password verifier type 0x939 is not supported by python-oracledb in thin mode
Error Airflow, DPY-3015: password verifier type 0x939 is not supported by python-oracledb in thin mode I've already install Oracle Provider package for Apache Airflow and triying to connect to Oracle (version 19c) with this package, And I got this error DPY-3015: password verifier type 0x939 is not supported by python...
https://stackoverflow.com/questions/76223726/error-airflow-dpy-3015-password-verifier-type-0x939-is-not-supported-by-python
oracle-database, airflow, oracle19c, airflow-2.x, airflow-webserver
1,683,771,668
se_78302926
stackoverflow
DATA_ENGINEERING
How to control a spark streaming job with airflow
How to control a spark streaming job with airflow 1.I have a spark streaming job that reads kafka, transforms and saves data to files The files then need to be delivered to gcs (I would save them directly with spark, but I can't use grpc based connectors in my environment) After delivering the files, I need to send ...
https://stackoverflow.com/questions/78302926/how-to-control-a-spark-streaming-job-with-airflow
pyspark, airflow, spark-streaming
1,712,736,300
se_67788083
stackoverflow
DATA_ENGINEERING
MWAA Airflow 2.0 in AWS Snowflake connection not showing
MWAA Airflow 2.0 in AWS Snowflake connection not showing Snowflake is not showing in the connections dropdown. I am using MWAA 2.0 and the providers are already in the requirements.txt MWAA uses python 3.7 dont know if this can be a thing Requirements.txt: --constraint "https://raw.githubusercontent.com/apache/airflo...
https://stackoverflow.com/questions/67788083/mwaa-airflow-2-0-in-aws-snowflake-connection-not-showing
airflow, snowflake-cloud-data-platform, mwaa
1,622,547,263
se_78300754
stackoverflow
DATA_ENGINEERING
How to programmatically update and save passwords in Airflow connections
How to programmatically update and save passwords in Airflow connections We would like to be able to programmatically update password values of Airflow Connections - I know there is a set_password() function in the Connection class, but it only changes the password in memory (i.e., it does not actually write the new v...
https://stackoverflow.com/questions/78300754/how-to-programmatically-update-and-save-passwords-in-airflow-connections
security, airflow
1,712,691,559