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_58403832
stackoverflow
DATA_ENGINEERING
How to manage python packages between airflow dags?
How to manage python packages between airflow dags? If I have multiple airflow dags with some overlapping python package dependencies, how can I keep each of these project deps. decoupled? Eg. if I had project A and B on same server I would run each of them with something like... source /path/to/virtualenv_a/activate...
https://stackoverflow.com/questions/58403832/how-to-manage-python-packages-between-airflow-dags
airflow
1,571,182,348
se_79229876
stackoverflow
DATA_ENGINEERING
Passing Parameters from ECS to Airflow XCom
Passing Parameters from ECS to Airflow XCom I want to create a DAG in Airflow that triggers an ECS task. This ECS task will then return a few parameters to Airflow, allowing the DAG to trigger the next dependent ECS task using those parameters. I’ve been looking for a way to pass these parameters between tasks, and fr...
https://stackoverflow.com/questions/79229876/passing-parameters-from-ecs-to-airflow-xcom
airflow, amazon-ecs, directed-acyclic-graphs, airflow-xcom
1,732,703,651
se_58023987
stackoverflow
DATA_ENGINEERING
jinja2.exceptions.TemplateNotFound error with airflow bash operator
jinja2.exceptions.TemplateNotFound error with airflow bash operator Running the below DAG task. dag = DAG( 'TEST', default_args=default_args, schedule_interval=None, max_active_runs=1) create_command0 = "./auto_script/jobs/start_mail.sh" t0 = BashOperator( task_id='start_mail', bash_command=c...
https://stackoverflow.com/questions/58023987/jinja2-exceptions-templatenotfound-error-with-airflow-bash-operator
python, jinja2, airflow
1,568,965,473
se_79174236
stackoverflow
DATA_ENGINEERING
[Airflow]: Dynamic Task Mapping on DockerOperator using Xcoms
[Airflow]: Dynamic Task Mapping on DockerOperator using Xcoms I am creating a dag that should do the following: fetch event ids for each event id, fetch event details ( DockerOperator ) The code below is my attempt to do what I want: from datetime import datetime from airflow.operators.python import PythonOperator ...
https://stackoverflow.com/questions/79174236/airflow-dynamic-task-mapping-on-dockeroperator-using-xcoms
python, docker, airflow, airflow-taskflow, airflow-xcom
1,731,218,684
se_79211733
stackoverflow
DATA_ENGINEERING
Airflow UI parameters not being passing on to DAG
Airflow UI parameters not being passing on to DAG I am trying to run a DAG with user specified value for a parameter - using this documentation as a guide. In the Airflow UI when I click the play button next to the DAG I see a page where my parameter schema_prefix is shown with its default value. Problem: The DAG alwa...
https://stackoverflow.com/questions/79211733/airflow-ui-parameters-not-being-passing-on-to-dag
python, airflow, orchestration
1,732,200,996
se_79233685
stackoverflow
DATA_ENGINEERING
How to trigger/skip Airflow dag execution based files from SFTP server
How to trigger/skip Airflow dag execution based files from SFTP server Can you suggest a solution on how to trigger or skip airflow dag execution based on file availability from SFTP server ? Scenario: We will receive file in sftp server , we can schedule a dag for every 5mins or 10mins to check sftp server path. In c...
https://stackoverflow.com/questions/79233685/how-to-trigger-skip-airflow-dag-execution-based-files-from-sftp-server
airflow
1,732,793,180
se_61514887
stackoverflow
DATA_ENGINEERING
How to Trigger a DAG on the success of a another DAG in Airflow using Python?
How to Trigger a DAG on the success of a another DAG in Airflow using Python? I have a python DAG Parent Job and DAG Child Job. The tasks in the Child Job should be triggered on the successful completion of the Parent Job tasks which are run daily. How can add external job trigger ? MY CODE from datetime import date...
https://stackoverflow.com/questions/61514887/how-to-trigger-a-dag-on-the-success-of-a-another-dag-in-airflow-using-python
python, python-3.x, airflow, directed-acyclic-graphs, airflow-scheduler
1,588,213,465
se_79225810
stackoverflow
DATA_ENGINEERING
Parameters for dataset and data-aware scheduling in Airflow
Parameters for dataset and data-aware scheduling in Airflow Has anyone had issues with their DAG having tasks not complete when passing default_args to the consumer dag? Producer DAG Upstream: from airflow.datasets import Dataset from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator from airfl...
https://stackoverflow.com/questions/79225810/parameters-for-dataset-and-data-aware-scheduling-in-airflow
python, python-3.x, airflow
1,732,608,339
se_79227133
stackoverflow
DATA_ENGINEERING
Use Airflow to move data from Azure BLOB into Snowflake
Use Airflow to move data from Azure BLOB into Snowflake I would like to know the best practice for moving data from BLOB to Snowflake for an Airflow POV. Currently, we are using ADF to pull data from source to Azure BLOB, then Snowflake pulls that data into staging via a SnowPipe using a Service Integration to Azure's...
https://stackoverflow.com/questions/79227133/use-airflow-to-move-data-from-azure-blob-into-snowflake
snowflake-cloud-data-platform, airflow, azure-blob-storage, azure-eventgrid
1,732,631,564
se_70424637
stackoverflow
DATA_ENGINEERING
connect docker postgres from outside (DBeaver)
connect docker postgres from outside (DBeaver) I am using Airflow through Docker-compose. The same docker-compose.yml has an image of Postgres as well. The config looks like below - postgres: image: postgres:13 ports: - 5432:5432 environment: POSTGRES_USER: airflow POSTGRES_PASSWORD: ai...
https://stackoverflow.com/questions/70424637/connect-docker-postgres-from-outside-dbeaver
postgresql, docker, airflow, dbeaver
1,640,016,269
se_79210811
stackoverflow
DATA_ENGINEERING
Error on Moving from Sequential to LocalExecutor
Error on Moving from Sequential to LocalExecutor I updated my airflow setup to use LocalExecutor but it started giving this error related to python's multiprocessing library: Traceback (most recent call last): File "<string>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3...
https://stackoverflow.com/questions/79210811/error-on-moving-from-sequential-to-localexecutor
python, airflow, python-multiprocessing, python-3.10
1,732,186,260
se_73581871
stackoverflow
DATA_ENGINEERING
OpenMetadata with own Airflow running in k8s
OpenMetadata with own Airflow running in k8s I am trying to run OpenMetadata in k8s using the official helm chart, but I want to use my already running Airflow instance. I followed the documentation to set up the openmetadata dependencies in the airflow containers. And my values.yml for the openmetadata chart looks li...
https://stackoverflow.com/questions/73581871/openmetadata-with-own-airflow-running-in-k8s
kubernetes, airflow, kubernetes-helm
1,662,118,078
se_79217188
stackoverflow
DATA_ENGINEERING
Python `ModuleNotFoundError` inside Docker container
Python `ModuleNotFoundError` inside Docker container I am developing and testing with airflow inside a docker container. The container is created using the image ghcr.io/apache/airflow/main/ci/python3.9 from apache/airflow. Inside the container, airflow and python are installed: $ which airflow /usr/local/bin/airflow ...
https://stackoverflow.com/questions/79217188/python-modulenotfounderror-inside-docker-container
python, linux, docker, pip, airflow
1,732,338,515
se_45388141
stackoverflow
DATA_ENGINEERING
Airflow: Can&#39;t connect to (&#39;0.0.0.0&#39;, 8080)
Airflow: Can&#39;t connect to (&#39;0.0.0.0&#39;, 8080) I am on Ubuntu 16.04,I have installed Airflow with pip. Next step airflow initdb [2017-07-29 12:20:23,483] {__init__.py:57} INFO - Using executor SequentialExecutor DB: sqlite:////home/milenko/airflow/airflow.db [2017-07-29 12:20:23,813] {db.py:287} INFO - Creat...
https://stackoverflow.com/questions/45388141/airflow-cant-connect-to-0-0-0-0-8080
python, airflow
1,501,323,935
se_76852065
stackoverflow
DATA_ENGINEERING
Authentication failed for user [admin] trying to access the Airflow APIs
Authentication failed for user [admin] trying to access the Airflow APIs We have installed OpenMetadata instance shipped with Elastic and Airflow. We used official helm charts with their image "docker.getcollate.io/openmetadata/ingestion". I upgraded to newest helm chart version v1.1.4 and OpenMetadata version. But we...
https://stackoverflow.com/questions/76852065/authentication-failed-for-user-admin-trying-to-access-the-airflow-apis
airflow, airflow-api
1,691,413,922
se_61172425
stackoverflow
DATA_ENGINEERING
Apache airflow REST API call fails with 403 forbidden when API authentication is enabled
Apache airflow REST API call fails with 403 forbidden when API authentication is enabled Apache Airflow REST API fails with 403 forbidden for the call: "/api/experimental/test" Configuration in airflow.cfg [webserver] authenticate = True auth_backend = airflow.contrib.auth.backends.password_auth [api] rbac = ...
https://stackoverflow.com/questions/61172425/apache-airflow-rest-api-call-fails-with-403-forbidden-when-api-authentication-is
airflow
1,586,699,184
se_79206259
stackoverflow
DATA_ENGINEERING
SSH Operator Failure in Airflow Job: Runs Fine on Retry Without Changes
SSH Operator Failure in Airflow Job: Runs Fine on Retry Without Changes Description: I am encountering a random issue with the SSHOperator in Apache Airflow. The task fails occasionally with the error: airflow.exceptions.AirflowException: SSH operator error: exit status = 1 Key Observations: The job executes success...
https://stackoverflow.com/questions/79206259/ssh-operator-failure-in-airflow-job-runs-fine-on-retry-without-changes
ssh, airflow
1,732,089,016
se_79179466
stackoverflow
DATA_ENGINEERING
Is it possible for the BashOperator to access files saved in a directory by a PythonOperator?
Is it possible for the BashOperator to access files saved in a directory by a PythonOperator? I'm currently working on a project where I need to grep some lines out of a selection of very large text files. The text files are in a gcs bucket with thousands of other files. They need to be compared against a list of fil...
https://stackoverflow.com/questions/79179466/is-it-possible-for-the-bashoperator-to-access-files-saved-in-a-directory-by-a-py
google-cloud-storage, airflow
1,731,370,354
se_79203597
stackoverflow
DATA_ENGINEERING
XCOM returns &quot;None&quot;
XCOM returns &quot;None&quot; I have the following problem with my Airflow task. I'm new to this topic, and even though I've already read up on it, I just can't solve it. One task retrieves the access token from Spotify. The request successfully returns a valid access token, which I can see in the task's logs. At leas...
https://stackoverflow.com/questions/79203597/xcom-returns-none
airflow, airflow-xcom
1,732,022,748
se_79170610
stackoverflow
DATA_ENGINEERING
Airflow dynamicaly mapped tasks don&#39;t run in sequence
Airflow dynamicaly mapped tasks don&#39;t run in sequence Hello I have a use case where I need to run a sequence of transformations on a collection of data. I grouped the sequence of transformation in a task group in order to dynamically map the tg to the list of data received from a previous task. Here's a snippet s...
https://stackoverflow.com/questions/79170610/airflow-dynamicaly-mapped-tasks-dont-run-in-sequence
airflow, workflow, airflow-taskflow, astronomer
1,731,079,205
se_79201019
stackoverflow
DATA_ENGINEERING
Airflow SSH Operator bash commands are failing Intermittently
Airflow SSH Operator bash commands are failing Intermittently We are currently running multiple bash commands through Airflow 2.7.3 version under Google Cloud Composer. from airflow.providers.ssh.operators.ssh import SSHOperator task_exec = SSHOperator( task_id='additonal_info', command="ksh -x execute.ksh pa...
https://stackoverflow.com/questions/79201019/airflow-ssh-operator-bash-commands-are-failing-intermittently
google-cloud-platform, airflow
1,731,954,253
se_48982540
stackoverflow
DATA_ENGINEERING
How to use airflow for real time data processing
How to use airflow for real time data processing I have a scenario where i want to process csv file and load to someother database: Cases pic csv file and load to mysql with the same name as csv then do some modification on loaded rows using python task file after that extract data from mysql and load to some other...
https://stackoverflow.com/questions/48982540/how-to-use-airflow-for-real-time-data-processing
etl, airflow
1,519,626,042
se_67398118
stackoverflow
DATA_ENGINEERING
Airflow - Stop DAG based on condition (skip remaining tasks after branch)
Airflow - Stop DAG based on condition (skip remaining tasks after branch) I am new on airflow, so I have a doubt here. I wanna run a DAG if a condition on first task is satisfied. If the condition is not satisfied I wanna to stop the dag after the first task. Example: # first task def get_number_func(**kwargs): n...
https://stackoverflow.com/questions/67398118/airflow-stop-dag-based-on-condition-skip-remaining-tasks-after-branch
python, bigdata, airflow
1,620,205,108
se_79181962
stackoverflow
DATA_ENGINEERING
airflow dynamic task mapping doesn&#39;t work
airflow dynamic task mapping doesn&#39;t work I have the following DAG which should spawn as many tasks as specified in the variable, but the mapped tasks tab shows "No Data found": from datetime import datetime from time import sleep from airflow.decorators import dag, task from airflow.models import Variable @da...
https://stackoverflow.com/questions/79181962/airflow-dynamic-task-mapping-doesnt-work
airflow
1,731,428,865
se_79184084
stackoverflow
DATA_ENGINEERING
Pulling XCOM value from failed Airflow KubernetesPodOperator task
Pulling XCOM value from failed Airflow KubernetesPodOperator task I am developing an operator which inherits from the KubernetesPodOperator (KPO) to execute a bash script. I have built-in error handling to deal with the many possible causes of failure for this bash script. I am trying to create test DAGs which prove ...
https://stackoverflow.com/questions/79184084/pulling-xcom-value-from-failed-airflow-kubernetespodoperator-task
python, kubernetes, airflow, astronomer
1,731,488,324
se_79170695
stackoverflow
DATA_ENGINEERING
Return task_id with Branch Condition with TaskFlow
Return task_id with Branch Condition with TaskFlow About the tasks bellow. I have a branch task (choose_best_model) and I would like to know if it's possible to return 'is_accurate' with the data @task.branch def choose_best_model(accuracy): data = "Cool" if accuracy > 5: return 'is_accurate' retur...
https://stackoverflow.com/questions/79170695/return-task-id-with-branch-condition-with-taskflow
airflow, airflow-2.x
1,731,080,627
se_79161391
stackoverflow
DATA_ENGINEERING
Airflow webserver pod unable to get log from worker pod
Airflow webserver pod unable to get log from worker pod I have deployed Airflow [2.9.3] in AKS. But when executing the DAGS getting below error. Don't getting any clue what needs to be updated. I am using Helm [1.15.0] for deployment. I am totally clueless please help.. Error Could not read served logs: HTTPConnection...
https://stackoverflow.com/questions/79161391/airflow-webserver-pod-unable-to-get-log-from-worker-pod
azure, airflow, kubernetes-helm, airflow-2.x, airflow-webserver
1,730,869,534
se_79169969
stackoverflow
DATA_ENGINEERING
Why can&#39;t my Docker container communicate with LocalStack on Apache Airflow?
Why can&#39;t my Docker container communicate with LocalStack on Apache Airflow? I'm trying to test a Docker container that interacts with LocalStack using Testcontainers within an Apache Airflow DockerOperator. In my setup, I have: An Airflow DAG that uses the DockerOperator to run a container. The container communi...
https://stackoverflow.com/questions/79169969/why-cant-my-docker-container-communicate-with-localstack-on-apache-airflow
python, docker, airflow, testcontainers, localstack
1,731,067,662
se_79168273
stackoverflow
DATA_ENGINEERING
Trying to trigger an AWS SNS topic from an Airflow DAG failure to invoke a Lambda function that creates a JIRA ticket for failed DAG
Trying to trigger an AWS SNS topic from an Airflow DAG failure to invoke a Lambda function that creates a JIRA ticket for failed DAG I have created a test dag which fails upon running for testing but I can't get the SNS topic to trigger after the dag fails. Is something missing or something added stopping it from work...
https://stackoverflow.com/questions/79168273/trying-to-trigger-an-aws-sns-topic-from-an-airflow-dag-failure-to-invoke-a-lambd
python, amazon-web-services, aws-lambda, airflow, amazon-sns
1,731,018,611
se_79122266
stackoverflow
DATA_ENGINEERING
Datasets tab not showing in Airflow
Datasets tab not showing in Airflow Using Airflow 2.10.2, connected with an admin role. The Datasets tab is invisible. The airflow instance contains dags with tasks that outlet datasets. There are no import errors and the datasets can be found in the airflow database. Are there conditions for the Datasets tab to be d...
https://stackoverflow.com/questions/79122266/datasets-tab-not-showing-in-airflow
airflow, airflow-webserver
1,729,778,158
se_79169529
stackoverflow
DATA_ENGINEERING
Airflow how to run a bash script from on_failure_callback custom function
Airflow how to run a bash script from on_failure_callback custom function I want to create a function which will be released on_failure_callback. It has to start a script on the server on which Airflow is installed. Any tips how to do it?
https://stackoverflow.com/questions/79169529/airflow-how-to-run-a-bash-script-from-on-failure-callback-custom-function
airflow
1,731,059,536
se_74498822
stackoverflow
DATA_ENGINEERING
How to set up SFTPSensor in Airflow to react on any file appearing on the server?
How to set up SFTPSensor in Airflow to react on any file appearing on the server? I am pretty new to Airflow. I am trying to set up SFTPSensor to look on the folder on the SFTP server for any file appear. It sounds for me like a regular expression "*" in the file_pattern property: import airflow import logging from ai...
https://stackoverflow.com/questions/74498822/how-to-set-up-sftpsensor-in-airflow-to-react-on-any-file-appearing-on-the-server
python, airflow, filepattern
1,668,849,604
se_76117009
stackoverflow
DATA_ENGINEERING
Altering &quot;readtimeout&quot; for Lambda Invoke in AirFlow
Altering &quot;readtimeout&quot; for Lambda Invoke in AirFlow I have a lambda that consistently takes longer than 1 minute to finish executing. This is a problem with the default LambdaInvokeFunctionOperator, since by default, it's hook creates a Boto3 connection with a default read_timeout of 60s (meaning that after ...
https://stackoverflow.com/questions/76117009/altering-readtimeout-for-lambda-invoke-in-airflow
python-3.x, aws-lambda, airflow, mwaa
1,682,573,305
se_79151113
stackoverflow
DATA_ENGINEERING
Why am I getting conflicting dependencies from the requirements file when deploying mwaa?
Why am I getting conflicting dependencies from the requirements file when deploying mwaa? I'm deploying MWAA with Airflow version 2.10.1 on a non-public network, with the following requirements file: --find-links /usr/local/airflow/plugins --no-index pyarrow==14.0.2 filelock==3.15.4 platformdirs==4.2.2 pydantic==2.8....
https://stackoverflow.com/questions/79151113/why-am-i-getting-conflicting-dependencies-from-the-requirements-file-when-deploy
python, airflow, mwaa
1,730,566,026
se_79159066
stackoverflow
DATA_ENGINEERING
Run docker container and python script in Airflow
Run docker container and python script in Airflow So I have a Scrapy project, which I was able to containerize in Docker, and a Jupyter notebook (for normal data preprocessing). I want to automate both of them using Airflow but encountered several errors. Firstly, I tried using dockeroperator and bashoperator, both of...
https://stackoverflow.com/questions/79159066/run-docker-container-and-python-script-in-airflow
python, docker, jupyter-notebook, airflow, directed-acyclic-graphs
1,730,808,944
se_79156770
stackoverflow
DATA_ENGINEERING
Airflow DAG Scheduling Issue: Passing Correct Execution Date for Monthly and Weekly Runs
Airflow DAG Scheduling Issue: Passing Correct Execution Date for Monthly and Weekly Runs I'm facing an issue with Airflow where my DAGs are not passing the correct execution date to the queries within the DAGs. I have two DAGs, one scheduled to run monthly on the first of the month, and another scheduled weekly on Wed...
https://stackoverflow.com/questions/79156770/airflow-dag-scheduling-issue-passing-correct-execution-date-for-monthly-and-wee
date, airflow, scheduling, directed-acyclic-graphs
1,730,749,139
se_79155490
stackoverflow
DATA_ENGINEERING
Airflow DAG Updates Not Reflecting in UI Without File Rename or Reserialization (v2.7.3 on Kubernetes), any solutions would be greatly appreciated
Airflow DAG Updates Not Reflecting in UI Without File Rename or Reserialization (v2.7.3 on Kubernetes), any solutions would be greatly appreciated I’m facing a problem with Airflow (v2.7.3 on Kubernetes) where changes made to the function code in a DAG aren’t reflected in the Airflow UI consistently. Specifically: Wh...
https://stackoverflow.com/questions/79155490/airflow-dag-updates-not-reflecting-in-ui-without-file-rename-or-reserialization
kubernetes, airflow, airflow-2.x
1,730,723,836
se_79150685
stackoverflow
DATA_ENGINEERING
Jobs failed in airflow, despite Spark History UI jobs stuck in running. AWS Serverless
Jobs failed in airflow, despite Spark History UI jobs stuck in running. AWS Serverless Has anyone ever experienced jobs failing in Airflow despite in Spark History UI, the jobs are still stuck in running. Also, I after I added a line of code to write the data to S3 (without reading it in any way), the jobs managed to ...
https://stackoverflow.com/questions/79150685/jobs-failed-in-airflow-despite-spark-history-ui-jobs-stuck-in-running-aws-serv
amazon-web-services, apache-spark, airflow, serverless, amazon-emr
1,730,551,303
se_57972327
stackoverflow
DATA_ENGINEERING
Airflow - Different schedule interval for backfilling
Airflow - Different schedule interval for backfilling What's the best way to handle having a different schedule interval for backfilling and ongoing running? For backfilling I want to use a daily interval, but for ongoing running I want to use an hourly interval. I can think of three approaches to this: The easies...
https://stackoverflow.com/questions/57972327/airflow-different-schedule-interval-for-backfilling
python, airflow
1,568,716,071
se_66580751
stackoverflow
DATA_ENGINEERING
Configure logging retention policy for Apache airflow
Configure logging retention policy for Apache airflow I could not find in Airflow docs how to set up the retention policy I need. Currently, all airflow logs have to be manually deleted, else they will be kept forever on our servers... Not the best way to go. I wish to create global logs configurations for all the di...
https://stackoverflow.com/questions/66580751/configure-logging-retention-policy-for-apache-airflow
python, logging, airflow
1,615,458,730
se_79133490
stackoverflow
DATA_ENGINEERING
Why environment variables are not encrypted in airflow?
Why environment variables are not encrypted in airflow? I added fernet_key inside the airflow.cfg, but environment variables are not encrypted in airflow admin?
https://stackoverflow.com/questions/79133490/why-environment-variables-are-not-encrypted-in-airflow
docker-compose, airflow
1,730,120,200
se_79146729
stackoverflow
DATA_ENGINEERING
Airflow DAG to retry if any of the Airflow Tasks fails
Airflow DAG to retry if any of the Airflow Tasks fails Would like to ask a Airflow question , currently when we set on the DAG default args to retry 5 times if failure happens default_args = { 'owner': 'testing', 'retries': 5, 'retry_delay': timedelta(minutes=1) } so what happens now is...
https://stackoverflow.com/questions/79146729/airflow-dag-to-retry-if-any-of-the-airflow-tasks-fails
python, exception, airflow, retry-logic
1,730,424,912
se_77939945
stackoverflow
DATA_ENGINEERING
Is there a way to find out that a task has been cleared via airflow UI?
Is there a way to find out that a task has been cleared via airflow UI? How can I make certain logic work at the moment when the task is cleared through the airflow UI? Or how can I determine at the time of running task that it was restarted due to the fact that it was cleared through airflow UI? I looked at the trigg...
https://stackoverflow.com/questions/77939945/is-there-a-way-to-find-out-that-a-task-has-been-cleared-via-airflow-ui
python, airflow
1,707,126,303
se_57669924
stackoverflow
DATA_ENGINEERING
Calling a Google cloud function within Airflow DAG
Calling a Google cloud function within Airflow DAG I have a google cloud function that is working, I am trying to call it from an Airflow DAG. what I have tried so far is to use the SimpleHttpOperator: MY_TASK_NAME = SimpleHttpOperator( task_id= "MY_TASK_NAME", method='POST', http_conn_id='ht...
https://stackoverflow.com/questions/57669924/calling-a-google-cloud-function-within-airflow-dag
python, google-cloud-functions, airflow, directed-acyclic-graphs
1,566,891,941
se_42246447
stackoverflow
DATA_ENGINEERING
Airflow: can a subdag be run inside another subdag?
Airflow: can a subdag be run inside another subdag? I have a subdag as one of the nodes of a main DAG. The workflow works fine. I tried to increase the levels of hierarchy by including another subdag inside the subdag. But airflow seem to get confused. Couple of questions in this regard: 1) Does airflow support subd...
https://stackoverflow.com/questions/42246447/airflow-can-a-subdag-be-run-inside-another-subdag
airflow
1,487,153,756
se_79140682
stackoverflow
DATA_ENGINEERING
Why function on_failure_callback for Airflow dag not running on task fail?
Why function on_failure_callback for Airflow dag not running on task fail? I got Airflow dag with on_failure_callback function. But on_failure_callback function not running on failure and I don't see logs. There code of my dag. All @tasks in this code works, there's no need to show special failing function. I work wit...
https://stackoverflow.com/questions/79140682/why-function-on-failure-callback-for-airflow-dag-not-running-on-task-fail
python, airflow
1,730,284,324
se_62196965
stackoverflow
DATA_ENGINEERING
Getting &#39;NoneType&#39; object has no attribute &#39;extra_dejson&#39; error
Getting &#39;NoneType&#39; object has no attribute &#39;extra_dejson&#39; error I configured my apache airflow. When I ran it from Apache UI, getting below error in logs. I searched a lot to figure out but no luck. Error: 'NoneType' object has no attribute 'extra_dejson'
https://stackoverflow.com/questions/62196965/getting-nonetype-object-has-no-attribute-extra-dejson-error
airflow, directed-acyclic-graphs
1,591,280,347
se_79134205
stackoverflow
DATA_ENGINEERING
Airflow PostgresHook retrieval in dag
Airflow PostgresHook retrieval in dag I'm using python to test the Airflow DAG. I have environmental variable: AIRFLOW_CONN_DB="postgresql://postgres:password@127.0.0.1:6099/db" and I use the following command to get the hook to get the hook: hook = PostgresHook(postgres_conn_id="db") Then I'm trying to read the tabl...
https://stackoverflow.com/questions/79134205/airflow-postgreshook-retrieval-in-dag
postgresql, airflow, database-connection, hook, airflow-taskflow
1,730,131,560
se_79127926
stackoverflow
DATA_ENGINEERING
Error while importing libraries in Apache Airflow Dag
Error while importing libraries in Apache Airflow Dag I am trying to use OpenAI Library in my Airflow Dag named:llm_workflow_dag.py, whenever I am trying to use any library other than this as well it gives me an error on UI: Broken DAG: [/opt/airflow/dags/llm_workflow_dag.py] Traceback (most recent call last): File...
https://stackoverflow.com/questions/79127926/error-while-importing-libraries-in-apache-airflow-dag
python, airflow
1,729,923,315
se_79121483
stackoverflow
DATA_ENGINEERING
Airflow ERROR - Error authorizing OAuth access token: Invalid JSON Web Key Set. [The request to sign in was denied.]
Airflow ERROR - Error authorizing OAuth access token: Invalid JSON Web Key Set. [The request to sign in was denied.] I am trying to integrate Azure EntraID authentication with Airflow [2.9.3]. The authentication is completed but the authorization is giving error like "The request to sign in was denied.". I am using He...
https://stackoverflow.com/questions/79121483/airflow-error-error-authorizing-oauth-access-token-invalid-json-web-key-set
azure-active-directory, airflow, azure-aks, airflow-2.x, airflow-webserver
1,729,765,734
se_51725746
stackoverflow
DATA_ENGINEERING
Airflow : Run a task when some upstream is skipped by shortcircuit
Airflow : Run a task when some upstream is skipped by shortcircuit I have a task that I'll call final that has multiple upstream connections. When one of the upstreams gets skipped by ShortCircuitOperator this task gets skipped as well. I don't want final task to get skipped as it has to report on DAG success. To avo...
https://stackoverflow.com/questions/51725746/airflow-run-a-task-when-some-upstream-is-skipped-by-shortcircuit
airflow
1,533,641,504
se_58065649
stackoverflow
DATA_ENGINEERING
How to combine multiple DAGs in Airflow
How to combine multiple DAGs in Airflow I really need to know how to use Airflow to have multiple DAGs call each other (e.g. DAG_1 >> DAG_2) similar to how it uses the upstream/downstream operators to run tasks within a DAG. I need to know how to set this up so Airflow will run DAG_1, then will run DAG_2 once DAG_1 h...
https://stackoverflow.com/questions/58065649/how-to-combine-multiple-dags-in-airflow
python, python-3.x, airflow, directed-acyclic-graphs
1,569,252,354
se_79114777
stackoverflow
DATA_ENGINEERING
Spark Block Manager Shuffle File getting deleted during spark execution
Spark Block Manager Shuffle File getting deleted during spark execution I am facing the following error,as the shuffle block gets auto-deleted causing error during ETL job. I am using spark 3.5.3 - I have checked with multiple different versions including 3.4.3 also, however still getting this error [2024-10-22T13:45:...
https://stackoverflow.com/questions/79114777/spark-block-manager-shuffle-file-getting-deleted-during-spark-execution
apache-spark, kubernetes, pyspark, apache-spark-sql, airflow
1,729,610,264
se_78410927
stackoverflow
DATA_ENGINEERING
How to Access sql_alchemy_conn After Update
How to Access sql_alchemy_conn After Update In the past, we followed the instructions at https://cloud.google.com/composer/docs/composer-2/access-airflow-database to access the Airflow database for exporting job history data. A recent Airflow/Cloud Composer update (to composer-2.6.6-airflow-2.7.3), though, causes the ...
https://stackoverflow.com/questions/78410927/how-to-access-sql-alchemy-conn-after-update
airflow, google-cloud-composer
1,714,509,487
se_78930213
stackoverflow
DATA_ENGINEERING
Problems with docker and airflow (specifically dockeroperator)
Problems with docker and airflow (specifically dockeroperator) I turn to you to help me to solve a many-days problem. I'm having problems with a specific configuration of airflow in docker. The context is that i am configuring several containers in order to run a DAG with Airflow in Docker. This DAG must runs an ETL p...
https://stackoverflow.com/questions/78930213/problems-with-docker-and-airflow-specifically-dockeroperator
database, docker, airflow, directed-acyclic-graphs, docker-daemon
1,724,983,625
se_79114907
stackoverflow
DATA_ENGINEERING
psycopg2.OperationalError in Airflow
psycopg2.OperationalError in Airflow Just started working with apache Airflow, wrote a simple dag. Process fails with that: File "/home/user/.local/lib/python3.8/site-packages/psycopg2/init.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError Workin...
https://stackoverflow.com/questions/79114907/psycopg2-operationalerror-in-airflow
postgresql, airflow
1,729,612,231
se_79114312
stackoverflow
DATA_ENGINEERING
Airflow Mark as success/failure callback
Airflow Mark as success/failure callback I'm playing a bit with Airflow alerting mechanism, but I can't find anything on how to do use a callback for when tasks/dags state is set manually. I'm primarly using the DockerOperator. I've tried the on_failure_callback and on_success_callback but they only get triggered when...
https://stackoverflow.com/questions/79114312/airflow-mark-as-success-failure-callback
python, airflow
1,729,603,884
se_79113437
stackoverflow
DATA_ENGINEERING
Airflow dag, wait for certain period if triggered at a certain time
Airflow dag, wait for certain period if triggered at a certain time I have an airflow DAG dag-A that is triggered from another DAG, sometimes, this dag-A is triggered at 4 pm UTC (midnight EST), and when it gets triggered at midnight EST (4PM UTC), I want it to wait for 30 minutes and then start running at 16:30 UTC. ...
https://stackoverflow.com/questions/79113437/airflow-dag-wait-for-certain-period-if-triggered-at-a-certain-time
python, airflow
1,729,590,524
se_79113437
stackoverflow
DATA_ENGINEERING
Airflow dag, wait for certain period if triggered at a certain time
Airflow dag, wait for certain period if triggered at a certain time I have an airflow DAG dag-A that is triggered from another DAG, sometimes, this dag-A is triggered at 4 pm UTC (midnight EST), and when it gets triggered at midnight EST (4PM UTC), I want it to wait for 30 minutes and then start running at 16:30 UTC. ...
https://stackoverflow.com/questions/79113437/airflow-dag-wait-for-certain-period-if-triggered-at-a-certain-time
python, airflow
1,729,590,524
se_79113040
stackoverflow
DATA_ENGINEERING
Limiting concurrency of parallel task execution
Limiting concurrency of parallel task execution I want to limit the number of airflow tasks running in parallel to avoid overwhelming affected resources such as AWS S3. Here is an example of non-working code, all 20 tasks from the first group start simultaneously rather than only 10. This code is meant to run on AWS M...
https://stackoverflow.com/questions/79113040/limiting-concurrency-of-parallel-task-execution
airflow, airflow-2.x
1,729,584,824
se_78515183
stackoverflow
DATA_ENGINEERING
Airflow log not shown in Web UI between retries
Airflow log not shown in Web UI between retries I'm running Airflow 2.9.1 Docker on localhost with LocalExecutor. Whenever there is an error and the task goes into retries (task becomes yellow, up_for_retry status), the log does not show up on Web UI, only a serial number, as shown in the attached screenshot. I can fi...
https://stackoverflow.com/questions/78515183/airflow-log-not-shown-in-web-ui-between-retries
airflow, airflow-2.x
1,716,348,017
se_79111939
stackoverflow
DATA_ENGINEERING
Operator: &#39;Invalid URL&#39; error when trying to sync data
Operator: &#39;Invalid URL&#39; error when trying to sync data Description: I am using the AirbyteTriggerSyncOperator in an Apache Airflow DAG to sync data from Airbyte to ClickHouse. However, the task fails, and I get the following error in the logs: requests.exceptions.MissingSchema: Invalid URL 'localhost/jobs': No...
https://stackoverflow.com/questions/79111939/operator-invalid-url-error-when-trying-to-sync-data
airflow, pipeline, clickhouse, airflow-2.x, airbyte
1,729,550,414
se_79110978
stackoverflow
DATA_ENGINEERING
Apache Airflow Rest API Authentication
Apache Airflow Rest API Authentication We have AWS Managed Apache Airflow. I need to get metadata of the DAGS using Airflow Rest API.How to authenticate AWS Managed Apache Airflow UI interface URL? Can we use API Key? If I need to support API key what needs to be done in Airflow settings as well as in POSTMAN and Pyth...
https://stackoverflow.com/questions/79110978/apache-airflow-rest-api-authentication
authentication, airflow
1,729,528,827
se_79097812
stackoverflow
DATA_ENGINEERING
how we can add 2 sql queries in a single dag
how we can add 2 sql queries in a single dag export_query: sql_query1 ; export_query_filter: "" processing_modules: 'export_bqtobqtmp_task' 'export_bqtmptogcs_task' 'pre_shell_execution' 'post_shell_execution' processing_dependencies: 'start >> generate_hashid >> export_bqtobqtmp_task >> export_bqtmptogcs_task >> p...
https://stackoverflow.com/questions/79097812/how-we-can-add-2-sql-queries-in-a-single-dag
airflow, directed-acyclic-graphs
1,729,163,775
se_73290775
stackoverflow
DATA_ENGINEERING
using airflow with Dbt debug: User does not have permissions for this command: &quot;git&quot;
using airflow with Dbt debug: User does not have permissions for this command: &quot;git&quot; I am making project using airflow with dbt. When I use AirflowBashOperator with bash command dbt debug I get error for git saying that I don't have permission for "git". How can I solve this error? The debug return is: Confi...
https://stackoverflow.com/questions/73290775/using-airflow-with-dbt-debug-user-does-not-have-permissions-for-this-command
git, airflow, dbt
1,660,043,094
se_77095923
stackoverflow
DATA_ENGINEERING
Logs saved locally and on AWS S3, but not loading in Airflow UI. (Airflow version 2.5.1)
Logs saved locally and on AWS S3, but not loading in Airflow UI. (Airflow version 2.5.1) I'm experiencing an issue with my Apache Airflow setup where the logs are being successfully saved both locally and on AWS S3. However, when I try to view these logs in the Airflow UI, they do not load, and the UI keeps spinning. ...
https://stackoverflow.com/questions/77095923/logs-saved-locally-and-on-aws-s3-but-not-loading-in-airflow-ui-airflow-versio
airflow, airflow-2.x, airflow-webserver
1,694,598,301
se_79094160
stackoverflow
DATA_ENGINEERING
How to unpause Airflow DAG without triggering
How to unpause Airflow DAG without triggering I created a dag factory. I switch the dags to the unpause state and they immediately start working, despite the set schedule interval value. Tried to override DagModel by specifying is_active=False. Nothing helped... I tried different methods of influence: API, Sessions, e...
https://stackoverflow.com/questions/79094160/how-to-unpause-airflow-dag-without-triggering
python, airflow, schedule, directed-acyclic-graphs
1,729,083,610
se_76656846
stackoverflow
DATA_ENGINEERING
Airflow: how to force reparse of DAG definition file
Airflow: how to force reparse of DAG definition file I'm using airflow 2.3.4 and primarily interact with airflow through the web UI. Two questions: Is there a way to force a reparse of a DAG definition file in Airflow? How about all DAG definition files? Is there a way to check the last time a DAG file was parsed?
https://stackoverflow.com/questions/76656846/airflow-how-to-force-reparse-of-dag-definition-file
airflow, airflow-2.x
1,689,018,179
se_61445955
stackoverflow
DATA_ENGINEERING
Airflow BashOperator Parameter From XCom Value
Airflow BashOperator Parameter From XCom Value I am having some problem assigning an xcom value to the BashOperator. All the parameters are properly retrieved except the tmp_dir, which is an xcom value generated during init_dag. I was able to retrieve the value in my custom operator but not being able to do it in th...
https://stackoverflow.com/questions/61445955/airflow-bashoperator-parameter-from-xcom-value
airflow
1,587,925,733
se_79055600
stackoverflow
DATA_ENGINEERING
How do I set up an airflow environment in github codespaces?
How do I set up an airflow environment in github codespaces? I dont have a personal pc as of now, so i been using library pc and coding with github codespaces. I installed airflow on codespaces but when i try to do airflow standalone it creates admin and password but when i enter the details, shows me bad request, ref...
https://stackoverflow.com/questions/79055600/how-do-i-set-up-an-airflow-environment-in-github-codespaces
github, airflow, codespaces
1,728,070,106
se_79081900
stackoverflow
DATA_ENGINEERING
Get context from previous airflow task
Get context from previous airflow task I have the following DAG: task_a >> task_b >> task_c I would like to be able: to somehow access inside task_c some parameters (environment variables to be precise) passed to task_b (which is a KubernetesOperator) without changing task_b (so no xcom involved: because of the leg...
https://stackoverflow.com/questions/79081900/get-context-from-previous-airflow-task
python, airflow
1,728,765,850
se_62672693
stackoverflow
DATA_ENGINEERING
KubernetesPodOperator xcom_push key/values not available to subsequent task with xcom_pull
KubernetesPodOperator xcom_push key/values not available to subsequent task with xcom_pull Here is an example of the KubernetesPodOperator I am trying -- set_tag = KubernetesPodOperator( namespace='default', task_id='set-tag', name='set-tag', image='ubuntu:18.04', xcom_push=...
https://stackoverflow.com/questions/62672693/kubernetespodoperator-xcom-push-key-values-not-available-to-subsequent-task-with
airflow
1,593,591,997
se_76203462
stackoverflow
DATA_ENGINEERING
Object of type datetime is not JSON serializable in Airflow DatabricksSqlOperator
Object of type datetime is not JSON serializable in Airflow DatabricksSqlOperator I am trying to fetch some data in Airflow using DatabricksSqlOperator from a Databricks delta tables using : select = DatabricksSqlOperator( databricks_conn_id=databricks_id, http_path=http_path, task_id="select_data", sq...
https://stackoverflow.com/questions/76203462/object-of-type-datetime-is-not-json-serializable-in-airflow-databrickssqloperato
python, json, airflow, databricks, databricks-sql
1,683,571,384
se_62895219
stackoverflow
DATA_ENGINEERING
Getting Error in airflow DAG unsupported operand type(s) for &gt;&gt;: &#39;list&#39; and &#39;list&#39;. Sequential and Parallel execution of tasks
Getting Error in airflow DAG unsupported operand type(s) for &gt;&gt;: &#39;list&#39; and &#39;list&#39;. Sequential and Parallel execution of tasks I am new to Apache airflow and DAG. There are total 6 tasks in the DAG (task1, task2, task3, task4, task5, task6). But at the time of running the DAG we are getting the e...
https://stackoverflow.com/questions/62895219/getting-error-in-airflow-dag-unsupported-operand-types-for-list-and-lis
python, airflow, directed-acyclic-graphs, airflow-scheduler
1,594,729,702
se_59995723
stackoverflow
DATA_ENGINEERING
How pull xcom variable from previous run
How pull xcom variable from previous run How pull xcom variable from previous run in airflow? Is it possible? I want to use value from same task_id in previous run_id as jinja variable for data argument in SimpeHttpOperator. I'm looking in macros docs https://airflow.apache.org/docs/stable/macros.html and cant't f...
https://stackoverflow.com/questions/59995723/how-pull-xcom-variable-from-previous-run
airflow
1,580,424,896
se_79051002
stackoverflow
DATA_ENGINEERING
MWAA Installing Python Module
MWAA Installing Python Module I am using Amazon Managed Workflows for Apache Airflow (MWAA) on AWS. I have an instance running and I am able to load DAGS on. I load the files to S3 and target the bucket and folder path to the DAGs, requirments.txt file and the plugins. This is the requirements file: pandas==2.2.3 boto...
https://stackoverflow.com/questions/79051002/mwaa-installing-python-module
amazon-web-services, airflow, mwaa
1,727,965,677
se_79055995
stackoverflow
DATA_ENGINEERING
Airflow Python Operator TypeError: got multiple values for keyword argument &#39;op_kwargs&#39;
Airflow Python Operator TypeError: got multiple values for keyword argument &#39;op_kwargs&#39; Broken DAG: [<redacted>] Traceback (most recent call last): File "<redacted>", line 198, in <module> some_task_op() >> Transfer >> short_circuit() >> Process >> Summarize ^^^^^^^^^^^^^^ File "/python/env/lib/pyt...
https://stackoverflow.com/questions/79055995/airflow-python-operator-typeerror-got-multiple-values-for-keyword-argument-op
python, airflow
1,728,082,169
se_79058700
stackoverflow
DATA_ENGINEERING
Template Rendering in Dynamic Task Mapping
Template Rendering in Dynamic Task Mapping I am trying to run a batch on dataproc, and I am submitting the DAG run timestamp as an environment variable in the spark properties spark.dataproc.driverEnv.REPORTING_TIMESTAMP. # spark properties for dataproc job submission spark_properties = ( "spark.app.name=levi-spar...
https://stackoverflow.com/questions/79058700/template-rendering-in-dynamic-task-mapping
python-3.x, airflow, jinja2
1,728,205,724
se_79062487
stackoverflow
DATA_ENGINEERING
Invoking dbt macro directly from the DAG file in Airflow
Invoking dbt macro directly from the DAG file in Airflow I am trying to invoke a macro directly from the DAG file as a task rather than being invoked from any of the model. Below is the code, I am using which is not working as expected, please help on this, run_macro = DbtTaskGroup( group_id="dbt_run_macro", p...
https://stackoverflow.com/questions/79062487/invoking-dbt-macro-directly-from-the-dag-file-in-airflow
airflow, dbt
1,728,313,677
se_38200666
stackoverflow
DATA_ENGINEERING
Airflow parallelism
Airflow parallelism the Local Executor spawns new processes while scheduling tasks. Is there a limit to the number of processes it creates. I needed to change it. I need to know what is the difference between scheduler's "max_threads" and "parallelism" in airflow.cfg ?
https://stackoverflow.com/questions/38200666/airflow-parallelism
airflow
1,467,713,336
se_79056309
stackoverflow
DATA_ENGINEERING
Unable to execute JavaScript based stored procedures on Snowflake via Airflow DAGs
Unable to execute JavaScript based stored procedures on Snowflake via Airflow DAGs We are experiencing some issues with the 2.5.1 airflow with python snowflake connector 2.9.0. When trying to execute JavaScript-based stored procedures, we get the below error: Scoped transaction started in stored procedure is incomple...
https://stackoverflow.com/questions/79056309/unable-to-execute-javascript-based-stored-procedures-on-snowflake-via-airflow-da
snowflake-cloud-data-platform, airflow
1,728,101,811
se_78964159
stackoverflow
DATA_ENGINEERING
Does airflow DatabricksSubmitRunOperator support python wheel
Does airflow DatabricksSubmitRunOperator support python wheel I know we could submit a python wheel job through UI, but is that possible to achieve it with airflow DatabricksSubmitRunOperator? For doc, it seems that only python_file supported, is there workaround to submit a python_wheel to run? Thanks in advance.
https://stackoverflow.com/questions/78964159/does-airflow-databrickssubmitrunoperator-support-python-wheel
airflow, databricks
1,725,863,765
se_79050542
stackoverflow
DATA_ENGINEERING
Airflow Scheduler stuck on restarting with really high CPU
Airflow Scheduler stuck on restarting with really high CPU I have a container that is stuck in a "restarting" loop. I get this reoccurring error message right before it dies and starts anew. [2024-10-03T09:46:09.117+0000] {scheduler_job_runner.py:256} INFO - Exiting gracefully upon receiving signal 15 .... sys.exit.. ...
https://stackoverflow.com/questions/79050542/airflow-scheduler-stuck-on-restarting-with-really-high-cpu
docker, airflow
1,727,958,372
se_79038651
stackoverflow
DATA_ENGINEERING
Creating Dataproc Cluster with public-ip-address using DataprocCreateClusterOperator in Airflow
Creating Dataproc Cluster with public-ip-address using DataprocCreateClusterOperator in Airflow I am trying to create a Dataproc Cluster in my GCP project within an Airflow DAG using the DataprocCreateClusterOperator. I am using the ClusterGenerator to generate the config for the cluster. However, I want to specify th...
https://stackoverflow.com/questions/79038651/creating-dataproc-cluster-with-public-ip-address-using-dataproccreateclusteroper
airflow, gcloud, google-cloud-dataproc, dataproc
1,727,687,323
se_78344141
stackoverflow
DATA_ENGINEERING
How to check files in Snowflake stage using Airflow
How to check files in Snowflake stage using Airflow I have some files in S3. How can I implement an Airflow sensor that checks whether a file is present in Snowflake stage, and trigger a task if it is? I understand that there's S3KeySensor, however I don't have access to the S3 bucket.
https://stackoverflow.com/questions/78344141/how-to-check-files-in-snowflake-stage-using-airflow
sql, snowflake-cloud-data-platform, airflow
1,713,396,480
se_74578403
stackoverflow
DATA_ENGINEERING
How to trigger DAG in Airflow everytime an external event state is True (Event based triggering)
How to trigger DAG in Airflow everytime an external event state is True (Event based triggering) The basic concept of Airflow does not allow triggering a Dag on an irregular interval. Actually, I want to trigger a dag every time a new file is placed on a remote server (like HTTPS, sftp, s3 ...) But Airflow requires a ...
https://stackoverflow.com/questions/74578403/how-to-trigger-dag-in-airflow-everytime-an-external-event-state-is-true-event-b
python, python-3.x, event-handling, airflow
1,669,416,224
se_79042937
stackoverflow
DATA_ENGINEERING
When status of Airflow Neptune task is `LOAD_IN_QUEUE` Airflow tries to retry
When status of Airflow Neptune task is `LOAD_IN_QUEUE` Airflow tries to retry I am work in multi-tenant data pipeline platform. So, we have about 5 tenants for now. We use AWS MWAA (Apache Airflow) as orchestration tool. Each tenant has separate DAG and run serially in order to get rid of overload in MWAA. Now we need...
https://stackoverflow.com/questions/79042937/when-status-of-airflow-neptune-task-is-load-in-queue-airflow-tries-to-retry
python, airflow, amazon-neptune, amazon-data-pipeline, mwaa
1,727,782,066
se_78391609
stackoverflow
DATA_ENGINEERING
Airflow not running locally
Airflow not running locally I am trying to run airflow locally using make airflow-up I have a config file with the passwords in .aws I'm getting this error WARN[0000] The "AWS_ACCESS_KEY_ID" variable is not set. Defaulting to a blank string. WARN[0000] The "AWS_SECRET_ACCESS_KEY" variable is not set. Defaulti...
https://stackoverflow.com/questions/78391609/airflow-not-running-locally
airflow
1,714,146,284
se_79041018
stackoverflow
DATA_ENGINEERING
Xcom in sparksubmit operator
Xcom in sparksubmit operator Do we have the capability to push data to xcom from within a Spark application that is using sparksubmit operator? Is this something that is available in the latest version? Using airflow 2.5.3. Don't see the operator having any functionality as yet. Is using a custom operator by adding th...
https://stackoverflow.com/questions/79041018/xcom-in-sparksubmit-operator
apache-spark, airflow, data-engineering
1,727,730,215
se_58965998
stackoverflow
DATA_ENGINEERING
Can&#39;t make Airflow use postgresql ( rds ) instead sqlite
Can&#39;t make Airflow use postgresql ( rds ) instead sqlite I Installed airflow on 3 ec2 nodes: webserver, scheduler and worker, i set same config to /airflow/airflow.cfg at all 3 nodes, configuration of DB is next sql_alchemy_conn = postgresql+psycopg2://airflow:password@rdsdatabaseaddreess.com/airflow. After that i...
https://stackoverflow.com/questions/58965998/cant-make-airflow-use-postgresql-rds-instead-sqlite
postgresql, airflow
1,574,300,504
se_79026920
stackoverflow
DATA_ENGINEERING
Redshift unexpected result with psycopg2 for query [INSERT INTO &lt;table&gt; SELECT * FROM &lt;VIEW&gt; ] - writing 0 records into Target table
Redshift unexpected result with psycopg2 for query [INSERT INTO &lt;table&gt; SELECT * FROM &lt;VIEW&gt; ] - writing 0 records into Target table Come across a weird issue with the Redshift [Insert into.. select..] called from the Airflow DAG Task. We have a DAG definition with 5 sequential tasks Task 1: Truncate temp_...
https://stackoverflow.com/questions/79026920/redshift-unexpected-result-with-psycopg2-for-query-insert-into-table-select
airflow, amazon-redshift, psycopg2
1,727,348,034
se_68675390
stackoverflow
DATA_ENGINEERING
Define maintenance windows in airflow
Define maintenance windows in airflow I am trying to define periods of time where the scheduler will not mark tasks as ready. For example, I have a DAG with a lengthy backfill period. The execution of the backfill will run throughout the day until the DAG is caught up. However I do not want and executions of the DAG...
https://stackoverflow.com/questions/68675390/define-maintenance-windows-in-airflow
airflow
1,628,216,767
se_71897448
stackoverflow
DATA_ENGINEERING
Why is Airflow not recognizing my bash command?
Why is Airflow not recognizing my bash command? I created a DAG from a py file. When I trigger the DAG, it gets hung up on the first task. My log states this : [2022-04-16 20:51:05,371] {subprocess.py:74} INFO - Running command: ['bash', '-c', 'wget "https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/I...
https://stackoverflow.com/questions/71897448/why-is-airflow-not-recognizing-my-bash-command
python, bash, airflow, directed-acyclic-graphs
1,650,142,631
se_78970289
stackoverflow
DATA_ENGINEERING
Is it possible to assign each step of a PySpark ETL pipeline to separate tasks of an Airflow DAG?
Is it possible to assign each step of a PySpark ETL pipeline to separate tasks of an Airflow DAG? From what I've found I need to use a SparkSubmitOperator to submit my PySpark script. But what if I want to assign the extract, transform, and load parts of my Spark job to different tasks in my Airflow DAG such that in m...
https://stackoverflow.com/questions/78970289/is-it-possible-to-assign-each-step-of-a-pyspark-etl-pipeline-to-separate-tasks-o
apache-spark, airflow, directed-acyclic-graphs, spark-submit
1,725,983,205
se_78746883
stackoverflow
DATA_ENGINEERING
Replacing incoming webhook connector in teams for airflow notifications post retirement of o365
Replacing incoming webhook connector in teams for airflow notifications post retirement of o365 I have recently heard that the incoming webhook connector present inside Microsoft teams is going to retire soon. In that case , I would be interested to get answers to three questions : How are we supposed to airflow not...
https://stackoverflow.com/questions/78746883/replacing-incoming-webhook-connector-in-teams-for-airflow-notifications-post-ret
python-3.x, airflow, microsoft-teams, webhooks
1,720,974,362
se_79020834
stackoverflow
DATA_ENGINEERING
How to set a daily task in an hourly DAG in Airflow?
How to set a daily task in an hourly DAG in Airflow? I have an hourly scheduled DAG in Airflow, the Graph may look like this: A >> B >> C The task A and B need to be executed every hour, but task C just needs to be executed once each day. Can I achieve this in Airflow?
https://stackoverflow.com/questions/79020834/how-to-set-a-daily-task-in-an-hourly-dag-in-airflow
python, airflow, airflow-2.x
1,727,227,016
se_79020182
stackoverflow
DATA_ENGINEERING
Can I set both DAG level and task level on_failure_callbacks in Airflow?
Can I set both DAG level and task level on_failure_callbacks in Airflow? I would like to set both task-level and DAG-level on_failure_callbacks and have them perform two different actions. Would the DAG level failure callbacks and task level callbacks both trigger if configured without overriding one another? Or would...
https://stackoverflow.com/questions/79020182/can-i-set-both-dag-level-and-task-level-on-failure-callbacks-in-airflow
callback, airflow
1,727,208,205
se_77255527
stackoverflow
DATA_ENGINEERING
Airflow DAG does not run properly independent if start_date is in the future, past or present
Airflow DAG does not run properly independent if start_date is in the future, past or present Today is 8th of September 2023. I run Airflow in Containers. Worker, Scheduler, etc. are on. I have the following DAG: from airflow import DAG from datetime import datetime from airflow.providers.postgres.operators.postgres i...
https://stackoverflow.com/questions/77255527/airflow-dag-does-not-run-properly-independent-if-start-date-is-in-the-future-pa
python, docker, airflow
1,696,803,638
se_79016440
stackoverflow
DATA_ENGINEERING
Airflow GlueJob operator creating Python2 jobs
Airflow GlueJob operator creating Python2 jobs I'm trying to run a Glue Job from Apache Airflow with the following code: with TaskGroup(group_id= DAG_NAME + '_group', dag=dag) as tg: for job in jobs_params: glue = GlueJobOperator( task_id=f'run_{job["name"]}', job_name=job["name"],...
https://stackoverflow.com/questions/79016440/airflow-gluejob-operator-creating-python2-jobs
amazon-web-services, apache-spark, pyspark, airflow, aws-glue
1,727,129,604
se_77876002
stackoverflow
DATA_ENGINEERING
Airflow XCOM_PUSH does not work with ConsumeFromTopicOperator 2.x
Airflow XCOM_PUSH does not work with ConsumeFromTopicOperator 2.x Airflow xcom_push from with a function called by Kafka ConsumeFromTopicOperator never allows you to push the value nor will any other task be able to retrieve it. If you try to push it it results in runtime error, if you simply 'return my_value' nothing...
https://stackoverflow.com/questions/77876002/airflow-xcom-push-does-not-work-with-consumefromtopicoperator-2-x
apache-kafka, airflow
1,706,127,756