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_78686986 | stackoverflow | DATA_ENGINEERING | Airflow script to schedule dag for every hour has loaded data for next 5 days instead of live updates every hour | Airflow script to schedule dag for every hour has loaded data for next 5 days instead of live updates every hour
[![Postgres][1]][1]
[![Airflow][2]][2]
I created an Airflow script that pulls info from Open weather api and loads into Postgres database locally.The Dag is running successfully and executes every hour howe... | https://stackoverflow.com/questions/78686986/airflow-script-to-schedule-dag-for-every-hour-has-loaded-data-for-next-5-days-in | python, airflow, directed-acyclic-graphs | 1,719,692,574 |
se_45825146 | stackoverflow | DATA_ENGINEERING | Running R scripts in Airflow? | Running R scripts in Airflow?
Is it possible to run an R script as an airflow dag? I have tried looking online for documentation on this and am unable to do so. Thanks | https://stackoverflow.com/questions/45825146/running-r-scripts-in-airflow | r, airflow | 1,503,428,646 |
se_69502814 | stackoverflow | DATA_ENGINEERING | Postgres COPY stream using pg8000 (error : could not determine data type of parameter $1) | Postgres COPY stream using pg8000 (error : could not determine data type of parameter $1)
I am trying to implement a COPY statement to push a pandas dataframe over to a CloudSQL Postgres database in an Airflow DAG.
I have the one limitation: I can only use the pg8000 driver.
I am using this as a reference https://gith... | https://stackoverflow.com/questions/69502814/postgres-copy-stream-using-pg8000-error-could-not-determine-data-type-of-para | python, postgresql, airflow, pg8000 | 1,633,738,542 |
se_67884770 | stackoverflow | DATA_ENGINEERING | Is it possible to access the Airflow API in AWS MWAA? | Is it possible to access the Airflow API in AWS MWAA?
I have an AWS MWAA Airflow v2.0.2 instance running.
I would like to have access to the Airflow API. Is this something supported currently? Planned for future releases? There is no mention of this in the AWS docs.
It looks like it was possible to enable the experime... | https://stackoverflow.com/questions/67884770/is-it-possible-to-access-the-airflow-api-in-aws-mwaa | amazon-web-services, airflow, mwaa | 1,623,143,690 |
se_77361428 | stackoverflow | DATA_ENGINEERING | How to send AWS MWAA cluster metrics to DataDog? | How to send AWS MWAA cluster metrics to DataDog?
AWS's Managed Workflows for Apache Airflow (MWAA) provides cluster metrics like the CPUUtilization and MemoryUtilization for the BaseWorker, Scheduler and WebServer. I would like to have these in DataDog so I can set usage alerts. Here's a example of what they look lik... | https://stackoverflow.com/questions/77361428/how-to-send-aws-mwaa-cluster-metrics-to-datadog | airflow, metrics, datadog, mwaa | 1,698,252,239 |
se_75269782 | stackoverflow | DATA_ENGINEERING | How to connect Airbyte with Airflow | How to connect Airbyte with Airflow
I have Airflow and Airbyte installed locally with Docker. I want to set a connection in Airflow to connect Airbyte. I read the Airbyte docs and did exactly what it says but I am getting error. I have configured Airflow's docker compose yaml to install necessary packages.
ADDITIONAL_... | https://stackoverflow.com/questions/75269782/how-to-connect-airbyte-with-airflow | docker, docker-compose, airflow | 1,674,929,203 |
se_78670871 | stackoverflow | DATA_ENGINEERING | How can I efficiently move data from Databricks to Snowflake? | How can I efficiently move data from Databricks to Snowflake?
I’m going to explain you a real problem I'm facing in my job, related to the movement of data from Databricks in Delta format, to Snowflake (which we use as an exposure layer).
I work as a Data Engineer in a fairly large company. We have a batch of about 80... | https://stackoverflow.com/questions/78670871/how-can-i-efficiently-move-data-from-databricks-to-snowflake | snowflake-cloud-data-platform, airflow, databricks, delta | 1,719,386,480 |
se_64895980 | stackoverflow | DATA_ENGINEERING | Does Airflow Kubernetes Executor run any operator? | Does Airflow Kubernetes Executor run any operator?
I am assessing the migration of my current Airflow deployment from Celery executor to Kubernetes (K8s) executor to leverage the dynamic allocation of resources and the isolation of tasks provided by pods.
It is clear to me that we can use the native KubernetesPodOpera... | https://stackoverflow.com/questions/64895980/does-airflow-kubernetes-executor-run-any-operator | kubernetes, airflow, kubernetesexecutor | 1,605,712,722 |
se_78667305 | stackoverflow | DATA_ENGINEERING | Airflow XCom not retrieving values between tasks in DAG | Airflow XCom not retrieving values between tasks in DAG
I'm experiencing an issue with Apache Airflow where values pushed to XCom in one task are not retrievable in a subsequent task within the same DAG. Here is a minimal example of my code:
from airflow import DAG
from airflow.operators.python_operator import PythonO... | https://stackoverflow.com/questions/78667305/airflow-xcom-not-retrieving-values-between-tasks-in-dag | python, airflow, airflow-taskflow, airflow-xcom | 1,719,318,125 |
se_37040975 | stackoverflow | DATA_ENGINEERING | Triggering an Airflow DAG from terminal not working | Triggering an Airflow DAG from terminal not working
I'm trying to use airflow to define a specific workflow that I want to manually trigger from the command line.
I create the DAG and add a bunch of tasks.
dag = airflow.DAG(
"DAG_NAME",
start_date=datetime(2015, 1, 1),
schedule_interval=None,
defaul... | https://stackoverflow.com/questions/37040975/triggering-an-airflow-dag-from-terminal-not-working | python, airflow | 1,462,412,737 |
se_68894529 | stackoverflow | DATA_ENGINEERING | Airflow MySQLToGCS Operator using up Memory | Airflow MySQLToGCS Operator using up Memory
I am trying to create a Dag task that downloads a MySQL table to a GCS bucket.
However, the built in operator MySQLToGCSOperator that does this seems to store the data in memory until it has finished downloading the table.
Since some of our tables are 100 GB+ this leads the ... | https://stackoverflow.com/questions/68894529/airflow-mysqltogcs-operator-using-up-memory | google-cloud-platform, airflow, google-cloud-composer | 1,629,729,327 |
se_78666130 | stackoverflow | DATA_ENGINEERING | How to set up airflow alerting so it alerts only on last retry attempt? | How to set up airflow alerting so it alerts only on last retry attempt?
My current DAG looks like:
def download_stage(dag_def: DailyDownloadDefinition, **additional_kwargs):
...
retries = 5
download = ShortCircuitOperator(
task_id=task_id,
python_callable=run_task_ignore_holidays,
... | https://stackoverflow.com/questions/78666130/how-to-set-up-airflow-alerting-so-it-alerts-only-on-last-retry-attempt | airflow, airflow-taskflow | 1,719,303,171 |
se_72771989 | stackoverflow | DATA_ENGINEERING | Airflow try number issue | Airflow try number issue
I have encountered an error during testing , does anyone have any lead on this.
Code:
relative_path = self._render_filename(ti, ti.try_number)
Error:
AttributeError: 'str' object has no attribute 'try_number | https://stackoverflow.com/questions/72771989/airflow-try-number-issue | airflow, airflow-scheduler, airflow-2.x | 1,656,332,346 |
se_78661938 | stackoverflow | DATA_ENGINEERING | Airflow - Task date is different than the date in the rendered template | Airflow - Task date is different than the date in the rendered template
I have an airflow DAG that should run on 1 AM every day. Now from the task details it does seems like it ran on 1 AM on the 24th (the time of this post):
But as you can see in the next run on the top right it seems like its same as the task last ... | https://stackoverflow.com/questions/78661938/airflow-task-date-is-different-than-the-date-in-the-rendered-template | airflow | 1,719,226,158 |
se_78633536 | stackoverflow | DATA_ENGINEERING | Pyspark job on sagemaker using airflow | Pyspark job on sagemaker using airflow
Our team wants to run a pyspark job using sagemaker compute by airflow. On exploring I came across two ways
sagemakerprocessing operator by airflow
pysparkprocessing class within sagemaker python sdk (would have to be executed using a python operator)
We need to run a pyspark t... | https://stackoverflow.com/questions/78633536/pyspark-job-on-sagemaker-using-airflow | amazon-web-services, pyspark, airflow, amazon-sagemaker | 1,718,639,000 |
se_67899152 | stackoverflow | DATA_ENGINEERING | Setting custom environment variables in managed apache airflow | Setting custom environment variables in managed apache airflow
We are planning to switch from managing airflow ourselves to Managed Apache Airflow services of AWS. Our original dags use some custom environment variables that need to be set in Managed airflow as well. So far I was not able to find a way to set custom e... | https://stackoverflow.com/questions/67899152/setting-custom-environment-variables-in-managed-apache-airflow | amazon-web-services, airflow, mwaa | 1,623,222,303 |
se_78613135 | stackoverflow | DATA_ENGINEERING | Passing Airflow's execution date to DBTCloud | Passing Airflow's execution date to DBTCloud
I am running DBTCloud transformation from Airflow. Job invocation is done as follows:
trigger_job = DbtCloudRunJobOperator(
task_id="trigger_dbt_cloud_job",
dbt_cloud_conn_id=DBT_CLOUD_CONN_ID,
job_id=JOB_ID,
check_interval=600,
timeout=3600,
)
I am... | https://stackoverflow.com/questions/78613135/passing-airflows-execution-date-to-dbtcloud | airflow, dbt-cloud | 1,718,200,592 |
se_78632198 | stackoverflow | DATA_ENGINEERING | Airflow XCom Push from SparkSubmitOperator not working | Airflow XCom Push from SparkSubmitOperator not working
I have an airflow job which launches a Spark job in one task and the next task extracts the application logs to find the Spark job application ID. I use Xcom push in the spark-submit task and xcom_pull in the next task.
def extract_app_id(**kwargs):
ti = kwarg... | https://stackoverflow.com/questions/78632198/airflow-xcom-push-from-sparksubmitoperator-not-working | python-3.x, apache-spark, airflow, airflow-taskflow, airflow-xcom | 1,718,621,484 |
se_78643077 | stackoverflow | DATA_ENGINEERING | How to make stop/contunie task in Airflow? | How to make stop/contunie task in Airflow?
I'm trying to make Airflow dag to update database.
If I get no mistakes while get data from API I need to insert data to database.
If there's any errors - I need send errors messages.
So I need add check length of errors dict.
Actually I need make transform data then there's ... | https://stackoverflow.com/questions/78643077/how-to-make-stop-contunie-task-in-airflow | python, airflow | 1,718,806,720 |
se_67200644 | stackoverflow | DATA_ENGINEERING | Accessing Airflow REST API in AWS Managed Workflows? | Accessing Airflow REST API in AWS Managed Workflows?
I have Airflow running in AWS MWAA, I would like to access REST API and there are 2 ways to do this but doesn't seem to work for me.
Overriding api.auth_backend. This used to work and now AWS MWAA won't allow you to add this, it is consider as 'blocklist' and not ... | https://stackoverflow.com/questions/67200644/accessing-airflow-rest-api-in-aws-managed-workflows | amazon-web-services, airflow, mwaa, airflow-api | 1,619,025,743 |
se_78579124 | stackoverflow | DATA_ENGINEERING | How to access dict stored in XComArg? | How to access dict stored in XComArg?
I'd like to retrieve value for a specific key from within JSON passed by XComArg to pass it as an argument to another task.
from airflow.decorators import dag, task
@dag(schedule=None)
def multiple_outputs():
@task(multiple_outputs=True)
def extract_employee():
r... | https://stackoverflow.com/questions/78579124/how-to-access-dict-stored-in-xcomarg | airflow, airflow-xcom | 1,717,569,186 |
se_78656258 | stackoverflow | DATA_ENGINEERING | Why leave the variable at the end of the with statement? | Why leave the variable at the end of the with statement?
I am trying to make sense of the why you would just write a particular variable at the end of the with statement ?
from datetime import datetime, timedelta
from airflow import DAG
from airflow.operators.bash import BashOperator
default_args = {
'owner': 'c... | https://stackoverflow.com/questions/78656258/why-leave-the-variable-at-the-end-of-the-with-statement | python, airflow, contextmanager | 1,719,064,319 |
se_78651541 | stackoverflow | DATA_ENGINEERING | How to setup Airflow avaliable by https://host_ip_address:8080? | How to setup Airflow avaliable by https://host_ip_address:8080?
I've got Airflow v. 2.9.2 on my Vurtuial Private Server.
But I can't access it by https://host_ip_adress:8080
What I need to make it available by ip address?
Now I've installed Airflow 2.9.2 according documentation.
Fetching docker-compose.yaml:
curl -LfO... | https://stackoverflow.com/questions/78651541/how-to-setup-airflow-avaliable-by-https-host-ip-address8080 | docker, airflow | 1,718,962,756 |
se_78644868 | stackoverflow | DATA_ENGINEERING | Pass Airflow Variables to Task | Pass Airflow Variables to Task
Is there an accepted best practice for passing or accessing encrypted Airflow variables/connections in modules executed during the DagRun? Is passing it as an argument to the PythonOperator with op_kwargs sufficient?
Thanks in advance. | https://stackoverflow.com/questions/78644868/pass-airflow-variables-to-task | airflow | 1,718,836,105 |
se_73259664 | stackoverflow | DATA_ENGINEERING | Airflow on Kubernetes add additional provider like SnowflakeOperator | Airflow on Kubernetes add additional provider like SnowflakeOperator
I am using Airflow 2.2.4 installed on EKS via the official helm chart and uses KubernetesPodOperator.
Now I want to add SnowflakeOperator to my task. Following the guide here I created a custom airflow image like the below and hosted it in an ECR rep... | https://stackoverflow.com/questions/73259664/airflow-on-kubernetes-add-additional-provider-like-snowflakeoperator | airflow, kubernetes-helm | 1,659,788,318 |
se_61549703 | stackoverflow | DATA_ENGINEERING | airflow operator to download a file from URL and push to S3? | airflow operator to download a file from URL and push to S3?
Is there an airflow operator to download a CSV file from a URL and upload the file into S3 ? I can upload a local-file to S3, but wanted to find out if there is an operator that will enable to upload the file into S3 without having to download the file into ... | https://stackoverflow.com/questions/61549703/airflow-operator-to-download-a-file-from-url-and-push-to-s3 | airflow | 1,588,362,510 |
se_78639692 | stackoverflow | DATA_ENGINEERING | How to parse airflow variables in custom sensor | How to parse airflow variables in custom sensor
I am building a custom sensor. To get the variables such as data_interval_start, data_interval_end, I am using context.
def poke(self, context):
data_interval_start= context['data_interval_start']
data_interval_end= context['data_interval_end']
... | https://stackoverflow.com/questions/78639692/how-to-parse-airflow-variables-in-custom-sensor | airflow, jinja2 | 1,718,745,512 |
se_78634385 | stackoverflow | DATA_ENGINEERING | Passing xcom to source_objects parameter in GCSToBigQueryOperator Airflow | Passing xcom to source_objects parameter in GCSToBigQueryOperator Airflow
I have Airflow DAG with 2 tasks.
First task is list_gcs_files which is defined as following:
list_gcs_files = PythonOperator(
task_id='list_gcs_files',
python_callable=get_file_list,
op_kwargs={'execution_date': '{{ e... | https://stackoverflow.com/questions/78634385/passing-xcom-to-source-objects-parameter-in-gcstobigqueryoperator-airflow | python, google-cloud-platform, google-bigquery, google-cloud-storage, airflow | 1,718,652,818 |
se_78379835 | stackoverflow | DATA_ENGINEERING | How to connect running Airflow server to VS Code? | How to connect running Airflow server to VS Code?
I am using Elestio cloud provider and it spun up Airflow server for me. I installed the Airflow official VS Code extension.
When trying to add server it asks for both server URL, username and password.
However my cloud provider only provides two items of credential:
I... | https://stackoverflow.com/questions/78379835/how-to-connect-running-airflow-server-to-vs-code | visual-studio-code, airflow | 1,713,974,763 |
se_78638015 | stackoverflow | DATA_ENGINEERING | AWS MWAA times out trying to connect to EKS API Server | AWS MWAA times out trying to connect to EKS API Server
I am trying to test out the EKSPodOperator to launch a pod from MWAA into EKS. I am getting an https timeout when the tasks tries to connect to the EKS API Server.
I can connect to the EKS API server from my local laptop so I've confirmed it publicly accessible. S... | https://stackoverflow.com/questions/78638015/aws-mwaa-times-out-trying-to-connect-to-eks-api-server | kubernetes, airflow, amazon-eks, mwaa | 1,718,720,139 |
se_78635716 | stackoverflow | DATA_ENGINEERING | Airflow - Dynamic mapped Task Group - Removing mapped task dependencies for all the sub task, and access mapped_input in task group directly | Airflow - Dynamic mapped Task Group - Removing mapped task dependencies for all the sub task, and access mapped_input in task group directly
I am working with Airflow and have created a DAG that uses dynamic task mapping inside a task group.
I have two questions:
How to remove the line from get_files to process_file_... | https://stackoverflow.com/questions/78635716/airflow-dynamic-mapped-task-group-removing-mapped-task-dependencies-for-all | airflow, airflow-2.x, airflow-taskflow, airflow-api | 1,718,690,746 |
se_78192772 | stackoverflow | DATA_ENGINEERING | setting airflow docker user id | setting airflow docker user id
I have set up airflow using docker as described
Running Airflow in Docker
Overall i want to achieve that dags and logs files are accessible and owned by a specific user on the host side. (And eventually exposed as a sambas share.)
I have used the standard yaml docker-compose.yaml and cr... | https://stackoverflow.com/questions/78192772/setting-airflow-docker-user-id | docker, docker-compose, airflow | 1,710,932,693 |
se_71680439 | stackoverflow | DATA_ENGINEERING | airflow kubernetes default setup ERROR: relation "log" does not exist at character 13 | airflow kubernetes default setup ERROR: relation "log" does not exist at character 13
I deployed the default helm chart for airflow 2.
The postgres pod is reporting an error:
ERROR: relation "log" does not exist at character 13
This appears after this statement:
INSERT INTO log (dttm, dag_id, task_id, eve... | https://stackoverflow.com/questions/71680439/airflow-kubernetes-default-setup-error-relation-log-does-not-exist-at-charact | kubernetes, airflow, kubernetes-helm, airflow-2.x | 1,648,655,820 |
se_45853013 | stackoverflow | DATA_ENGINEERING | Airflow tasks get stuck at "queued" status and never gets running | Airflow tasks get stuck at "queued" status and never gets running
I'm using Airflow v1.8.1 and run all components (worker, web, flower, scheduler) on kubernetes & Docker.
I use Celery Executor with Redis and my tasks are looks like:
(start) -> (do_work_for_product1)
├ -> (do_work_for_product2)
├ ... | https://stackoverflow.com/questions/45853013/airflow-tasks-get-stuck-at-queued-status-and-never-gets-running | airflow, airflow-scheduler | 1,503,549,206 |
se_78612499 | stackoverflow | DATA_ENGINEERING | How to apply changes to Airflow job_heartbeat_sec scheduler variable | How to apply changes to Airflow job_heartbeat_sec scheduler variable
So I've updated the value of job_heartbeat_sec in the [scheduler] section of airflow.cfg. I stopped and restarted the scheduler after updating the value of the variable. I expected the /health endpoint of the Webserver UI to only update the heartbeat... | https://stackoverflow.com/questions/78612499/how-to-apply-changes-to-airflow-job-heartbeat-sec-scheduler-variable | airflow | 1,718,193,557 |
se_78623746 | stackoverflow | DATA_ENGINEERING | Airflow sensor task, run for 3 days straight waiting for file to get added to GCS bucket | Airflow sensor task, run for 3 days straight waiting for file to get added to GCS bucket
I have a DAG that currently checks a GCS bucket for a specific file that comes once a month. The problem I have is that his file will come on the 6th "Working day" of the month, which could mean it could be the 6th, 7th, 8th, even... | https://stackoverflow.com/questions/78623746/airflow-sensor-task-run-for-3-days-straight-waiting-for-file-to-get-added-to-gc | python, google-cloud-storage, airflow, scheduled-tasks, directed-acyclic-graphs | 1,718,377,659 |
se_71378927 | stackoverflow | DATA_ENGINEERING | How to display Airflow DAG status in Big Query tables | How to display Airflow DAG status in Big Query tables
I want to show the DAG (airflow) final status (success/Failure) to a table in BQ.
Like that table can contains: Date-Time,DAG-Name,Status etc columns and it will get populated according to the final status of the DAG.
Please help; how can this be achieved? | https://stackoverflow.com/questions/71378927/how-to-display-airflow-dag-status-in-big-query-tables | google-cloud-platform, google-bigquery, airflow | 1,646,645,514 |
se_78605165 | stackoverflow | DATA_ENGINEERING | Airflow: Failing to push data back into the pipeline | Airflow: Failing to push data back into the pipeline
I have setup a workflow, which consists of two tasks:
In second, I am successfully pulling data pushed into the pipeline by the first task. However, after processing data, when I try to push data back into the pipeline, I get the error "INFO - Task exited with retur... | https://stackoverflow.com/questions/78605165/airflow-failing-to-push-data-back-into-the-pipeline | python, airflow, etl, airflow-xcom | 1,718,073,025 |
se_78621135 | stackoverflow | DATA_ENGINEERING | In Airflow how to avoid a DAG to run a child DAG which is disabled in the Airflow UI? | In Airflow how to avoid a DAG to run a child DAG which is disabled in the Airflow UI?
I was told to disable the dbt DAG in Airflow, which I did, but the dbt DAG in my case is called by a parent "main" DAG, which calls an "extract" DAG before calling the dbt one.
I disabled the dbt dag in the Airflow UI, but the main D... | https://stackoverflow.com/questions/78621135/in-airflow-how-to-avoid-a-dag-to-run-a-child-dag-which-is-disabled-in-the-airflo | airflow, airflow-taskflow, airflow-api, airflow-xcom | 1,718,341,995 |
se_73655345 | stackoverflow | DATA_ENGINEERING | Does temporary files created exist across tasks in an airflow DAG | Does temporary files created exist across tasks in an airflow DAG
Does airflow DAG retains temp file created across tasks.
My code is
//This task calls an external api and downloads data into download.csv, this temp file download.csv is created on the fly by task using open function in python
t1 = BashOperator(
... | https://stackoverflow.com/questions/73655345/does-temporary-files-created-exist-across-tasks-in-an-airflow-dag | python, python-3.x, airflow, airflow-2.x | 1,662,673,725 |
se_45045507 | stackoverflow | DATA_ENGINEERING | How do I setup an Airflow of 2 servers? | How do I setup an Airflow of 2 servers?
Trying to split out Airflow processes onto 2 servers. Server A, which has been already running in standalone mode with everything on it, has the DAGs and I'd like to set it as the worker in the new setup with an additional server.
Server B is the new server which would host the... | https://stackoverflow.com/questions/45045507/how-do-i-setup-an-airflow-of-2-servers | airflow | 1,499,812,439 |
se_78093557 | stackoverflow | DATA_ENGINEERING | How do I access the GlueJobOperator script_args input arguments in my Glue job script? | How do I access the GlueJobOperator script_args input arguments in my Glue job script?
I have an airflow DAG that uses the GlueJobOperator module to trigger an AWS Glue job. Everything is working fine except that I'm now trying to pass some input arguments through the script_args parameter of the GlueJobOperator like ... | https://stackoverflow.com/questions/78093557/how-do-i-access-the-gluejoboperator-script-args-input-arguments-in-my-glue-job-s | airflow, aws-glue | 1,709,398,481 |
se_78560912 | stackoverflow | DATA_ENGINEERING | How to hide environment variable in Airflow DAG's log? | How to hide environment variable in Airflow DAG's log?
I am using Airflow to periodically run a query on an Oracle server. The connection string is defined in an Airflow variable called password_oracle_connections, so that it remains secret.
The DAG instantiates a Docker image, for which it defines an OS variable ... | https://stackoverflow.com/questions/78560912/how-to-hide-environment-variable-in-airflow-dags-log | airflow | 1,717,169,087 |
se_74815179 | stackoverflow | DATA_ENGINEERING | What is the correct fields in `time_partitioning` for GCSToBigQueryOperator in Airflow | What is the correct fields in `time_partitioning` for GCSToBigQueryOperator in Airflow
So I'm working with the Airflow Operator GCSToBigQueryOperator and I know the following for sure:
time_partitioning={'field': 'date', 'type': 'DAY'}
This works as it should. However when I try to add in expiration / require_partiti... | https://stackoverflow.com/questions/74815179/what-is-the-correct-fields-in-time-partitioning-for-gcstobigqueryoperator-in-a | google-bigquery, airflow, google-cloud-composer | 1,671,124,047 |
se_78613575 | stackoverflow | DATA_ENGINEERING | airflow setup on windows | airflow setup on windows
I am trying to install airflow for the first time on my local machine. As part of the process I have installed :
python 3.12.4
VSCode for executing python commands and downloading necessary packages for airflow.
As part of installation steps I have executed below commands:
mkdir airflow_projec... | https://stackoverflow.com/questions/78613575/airflow-setup-on-windows | installation, airflow | 1,718,205,544 |
se_49738173 | stackoverflow | DATA_ENGINEERING | How to run Airflow PythonOperator in a virtual environment | How to run Airflow PythonOperator in a virtual environment
I have several python files that I'm currently executing using BashOperator. This allows me the flexibility to choose the python virtual environment easily.
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
default_args = {
... | https://stackoverflow.com/questions/49738173/how-to-run-airflow-pythonoperator-in-a-virtual-environment | python, virtualenv, airflow | 1,523,293,794 |
se_68320996 | stackoverflow | DATA_ENGINEERING | unable to access local file system from apache airflow python dag | unable to access local file system from apache airflow python dag
I have a python function which reads data from local csv file. once i deployed the dag in airflow i am getting "No such file or directory" error.
i tried to set the env variable but no luck.
my code:
os.environ["EP"] = "/localpath/"
lp = os.environ["EP"... | https://stackoverflow.com/questions/68320996/unable-to-access-local-file-system-from-apache-airflow-python-dag | airflow | 1,625,853,316 |
se_77096452 | stackoverflow | DATA_ENGINEERING | Gunicorn worker getting exit in airflow web server with Received signal: 15. Closing gunicorn | Gunicorn worker getting exit in airflow web server with Received signal: 15. Closing gunicorn
Gunicorn worker getting exit in airflow web server with Received signal: 15. Closing gunicorn. while installing airflow on kubernetes.
Scheduler and other DB migration and user sync pod are running fine only web server pod ar... | https://stackoverflow.com/questions/77096452/gunicorn-worker-getting-exit-in-airflow-web-server-with-received-signal-15-clo | python, airflow, gunicorn, airflow-webserver | 1,694,602,713 |
se_78610161 | stackoverflow | DATA_ENGINEERING | Dataflow job successfully completes but Airflow tasks thinks that it is still running | Dataflow job successfully completes but Airflow tasks thinks that it is still running
We recently upgraded to Airflow 2.6.3. After this upgrade our Airflow tasks didn't complete after dataflow job completion. We are using DataflowCreateJavaJobOperator. Our pipeline has pipeline.run().waitUntilFinish() setup.
return Da... | https://stackoverflow.com/questions/78610161/dataflow-job-successfully-completes-but-airflow-tasks-thinks-that-it-is-still-ru | airflow, google-cloud-dataflow, apache-beam | 1,718,150,919 |
se_78464338 | stackoverflow | DATA_ENGINEERING | Airflow service throw an error: AttributeError: 'function' object has no attribute 'task_group' | Airflow service throw an error: AttributeError: 'function' object has no attribute 'task_group'
I attempted to retrieve data from MongoDB and input it into the DAG factory creator function, but then Airflow generated an error:
Broken DAG: [/home/jj/airflow/dags/Metrics_calculationsV8_dagFactory.py] Tra... | https://stackoverflow.com/questions/78464338/airflow-service-throw-an-error-attributeerror-function-object-has-no-attribu | python-3.x, airflow, python-3.10, airflow-2.x | 1,715,425,680 |
se_78582539 | stackoverflow | DATA_ENGINEERING | Get file from azure blob storage in airflow - No such file or directory | Get file from azure blob storage in airflow - No such file or directory
I'm trying to get a file from Azure Blob Storage. But it doesn't find the directory or file when I pass the path_file parameter.
I'm trying to use this function to get a file from my azure blob storage.
(https://airflow.apache.org/docs/apache-airf... | https://stackoverflow.com/questions/78582539/get-file-from-azure-blob-storage-in-airflow-no-such-file-or-directory | python, azure, airflow, azure-blob-storage | 1,717,607,313 |
se_78606844 | stackoverflow | DATA_ENGINEERING | How to execute a task in Airflow in another server? | How to execute a task in Airflow in another server?
I have already set up the following infrastructure:
host (main):
airflow (with all the services)
slave server
airflow (redis, postgres, worker)
Cannot see any tutorial or couldn't find any clue about how to do it, but i don't have any idea about how to connect th... | https://stackoverflow.com/questions/78606844/how-to-execute-a-task-in-airflow-in-another-server | airflow | 1,718,101,101 |
se_78606844 | stackoverflow | DATA_ENGINEERING | How to execute a task in Airflow in another server? | How to execute a task in Airflow in another server?
I have already set up the following infrastructure:
host (main):
airflow (with all the services)
slave server
airflow (redis, postgres, worker)
Cannot see any tutorial or couldn't find any clue about how to do it, but i don't have any idea about how to connect th... | https://stackoverflow.com/questions/78606844/how-to-execute-a-task-in-airflow-in-another-server | airflow | 1,718,101,101 |
se_78601842 | stackoverflow | DATA_ENGINEERING | Set schedule_after_task_execution=False in Ariflow from within a dag | Set schedule_after_task_execution=False in Ariflow from within a dag
Is it possible to set schedule_after_task_execution=False from within a DAG? I need this functionality only for one particular DAG that has a problem with the "mini scheduler".Is it possible to be set?
I tried this code but it doesn't seem to work:
d... | https://stackoverflow.com/questions/78601842/set-schedule-after-task-execution-false-in-ariflow-from-within-a-dag | airflow | 1,718,016,380 |
se_69450200 | stackoverflow | DATA_ENGINEERING | Is there a way to setup Airflow 2 with Google OAuth2 authentication | Is there a way to setup Airflow 2 with Google OAuth2 authentication
I have Airflow 1.10.14 nicely configured to allow organisation-level Google OAuth2 authentication.
I have recently tried to upgrade to Airflow 2 but I could not find a way to make Google OAuth2 work.
This is how my webserver_config.py looks like:
impo... | https://stackoverflow.com/questions/69450200/is-there-a-way-to-setup-airflow-2-with-google-oauth2-authentication | google-oauth, airflow | 1,633,435,850 |
se_78598980 | stackoverflow | DATA_ENGINEERING | How to get the xcom pull as dictionary | How to get the xcom pull as dictionary
I have a dag where i have pushed a dictionary to xcom and wnat to pull it in BigQuery Operator, i have also defined render_template_as_native_obj=True, but still it is giving error as
time partitioning argument must have a class type dict not class str error
code :
def load_job_... | https://stackoverflow.com/questions/78598980/how-to-get-the-xcom-pull-as-dictionary | python, airflow, google-cloud-composer, airflow-2.x, airflow-xcom | 1,717,947,271 |
se_74296280 | stackoverflow | DATA_ENGINEERING | Airflow Template Not Rendering | Airflow Template Not Rendering
Based on this answer, I wrote a custom Operator to include name and args parameters as template-able fields:
class TemplatedLivyOperator(LivyOperator):
template_fields = ('name','args', 'spark_params',)
And I'm trying to get execution date through a template within this custom Opera... | https://stackoverflow.com/questions/74296280/airflow-template-not-rendering | python, airflow | 1,667,428,158 |
se_78598792 | stackoverflow | DATA_ENGINEERING | Airflow Workers (Celery) CPU usage problem on K8S | Airflow Workers (Celery) CPU usage problem on K8S
I am experiencing a problem with CPU resource allocation for worker pods on Kubernetes. Currently, I am migrating Airflow from an EC2 instance to Kubernetes. The EC2 instance has 4 CPUs, and the Celery worker_concurrency configuration is set to 16, which is the default... | https://stackoverflow.com/questions/78598792/airflow-workers-celery-cpu-usage-problem-on-k8s | kubernetes, airflow, celery, celery-task | 1,717,941,802 |
se_78593435 | stackoverflow | DATA_ENGINEERING | Trigger rule "one_success" doesn't work for "DataprocCreateClusterOperator" | Trigger rule "one_success" doesn't work for "DataprocCreateClusterOperator"
I have a case that one of my operators which is DataprocCreateClusterOperator never triggers as if "all_success" was still set for it. It runs fine if it's the very first task but I don't want to create a cluster each t... | https://stackoverflow.com/questions/78593435/trigger-rule-one-success-doesnt-work-for-dataproccreateclusteroperator | airflow, google-cloud-dataproc | 1,717,783,027 |
se_67895590 | stackoverflow | DATA_ENGINEERING | Get List of all the dags in python | Get List of all the dags in python
I have a list of dags that are hosted on Airflow. I want to get the name of the dags in a AWS lambda function so that I can use the names and trigger the dag using experimental API. I am stuck on getting the names of the dag.
Any help would be appreciated | https://stackoverflow.com/questions/67895590/get-list-of-all-the-dags-in-python | airflow | 1,623,193,592 |
se_65742424 | stackoverflow | DATA_ENGINEERING | Airflow: schedule_interval = '@once' | Airflow: schedule_interval = '@once'
What is the semantic difference between setting airflow's schedule_interval to "@once" vs. None?
If I understand correctly, they both will require manual triggering of the dag in order to run. Is this correct? | https://stackoverflow.com/questions/65742424/airflow-schedule-interval-once | airflow, airflow-scheduler | 1,610,738,781 |
se_77913339 | stackoverflow | DATA_ENGINEERING | How do I print RAISE NOTICE from PostgreSQL in Airflow logs | How do I print RAISE NOTICE from PostgreSQL in Airflow logs
I am trying to print out some debugging data from the RAISE NOTICE in the Postgresql stored procedure in Airflow. I remember that a few years ago this was done by default, at least in the official docker image back then. I'm guessing things changed in the lat... | https://stackoverflow.com/questions/77913339/how-do-i-print-raise-notice-from-postgresql-in-airflow-logs | postgresql, airflow, airflow-2.x | 1,706,704,169 |
se_78590228 | stackoverflow | DATA_ENGINEERING | unable to pull xcom value in BigQueryOperator | unable to pull xcom value in BigQueryOperator
I have a DAG, where i am using BigqueryOperator to create partitioned table, but it is not able to pull the value from Xcom.
def load_job_func(**kwargs):
table_name = kwargs['table_name']
load_date = kwargs['load_date']
Snapshot_Month_Date = kwargs[... | https://stackoverflow.com/questions/78590228/unable-to-pull-xcom-value-in-bigqueryoperator | python-3.x, google-cloud-platform, airflow, google-cloud-composer, airflow-2.x | 1,717,741,717 |
se_55952427 | stackoverflow | DATA_ENGINEERING | How to pass use_legacy_sql=False to the SqlSensor in an Airflow DAG with a BigQuery connection? | How to pass use_legacy_sql=False to the SqlSensor in an Airflow DAG with a BigQuery connection?
I am using my own custom SqlSensor since the release of Apache Airflow 1.9, as I was unable to use the one included with Standard SQL statements operating on Google BigQuery, because the default is to use legacy SQL.
I've c... | https://stackoverflow.com/questions/55952427/how-to-pass-use-legacy-sql-false-to-the-sqlsensor-in-an-airflow-dag-with-a-bigqu | google-bigquery, airflow | 1,556,799,915 |
se_76867140 | stackoverflow | DATA_ENGINEERING | How to use host's network inside Airflow built on Docker Compose? | How to use host's network inside Airflow built on Docker Compose?
I want to migrate from old Airflow that is installed locally to a new one. I am trying to run new Airflow trough Docker and Docker Compose. I am using official docker-compose.yml. The problem that I have is that I can't send email using python smtpl... | https://stackoverflow.com/questions/76867140/how-to-use-hosts-network-inside-airflow-built-on-docker-compose | docker, network-programming, docker-compose, localhost, airflow | 1,691,578,997 |
se_78585193 | stackoverflow | DATA_ENGINEERING | Airflow Connection type doesn't appear | Airflow Connection type doesn't appear
I have a problem with my Airflow 2.9.1. I have it set up using docker. The machine works for me in the .yaml file I have defined
_PIP_ADDITIONAL_REQUIREMENTS: ${_PIP_ADDITIONAL_REQUIREMENTS:- salesforce}
It downloads the library for me of course, which works, but afterwards m... | https://stackoverflow.com/questions/78585193/airflow-connection-type-doesnt-appear | airflow, airflow-webserver | 1,717,660,503 |
se_78584127 | stackoverflow | DATA_ENGINEERING | MWAA missing packages | MWAA missing packages
I am trying to add a task using the SqlToS3Operator and running into trouble running it. I get:
ModuleNotFoundError: No module name 'pandas'
... trace...
Exception: pandas library not installed. run: pip install 'apache-airflow-providers-common-sql[pandas]'
The task in question is defined as:
ge... | https://stackoverflow.com/questions/78584127/mwaa-missing-packages | airflow, mwaa | 1,717,637,723 |
se_78314416 | stackoverflow | DATA_ENGINEERING | Cosmos DbtDag running model can not find environment variables used in macros | Cosmos DbtDag running model can not find environment variables used in macros
I am running a DBT model in Airflow using the Astronomer-Cosmos SDK. I have run demos successfully using this environment. I can run my models from the DBT command line successfully also. However when I tried to run using a DAG running in Ai... | https://stackoverflow.com/questions/78314416/cosmos-dbtdag-running-model-can-not-find-environment-variables-used-in-macros | airflow, dbt, astronomer | 1,712,901,065 |
se_78577881 | stackoverflow | DATA_ENGINEERING | A task won't trigger after a BranchPythonOperator calls it | A task won't trigger after a BranchPythonOperator calls it
I'm trying to achieve max performance in the case I'm working on.
I'm parsing jsons and when the first three tasks:
check_cm_files_present_task
check_cmts_struct_files_present_task
check_cmts_meas_files_present_task
detect any new file in either one of ... | https://stackoverflow.com/questions/78577881/a-task-wont-trigger-after-a-branchpythonoperator-calls-it | python, airflow | 1,717,538,190 |
se_75674159 | stackoverflow | DATA_ENGINEERING | Airflow: Outdated DAGs persisting in Web UI after gitSync | Airflow: Outdated DAGs persisting in Web UI after gitSync
I am using Airflow on Kubernetes using git-sync to sync DAGs from a git repository. I can successfully import DAGs, but I'm seeing an issue where old changes are persisting in the Airflow UI alongside new changes.
Example:
In my remote repository I have the fol... | https://stackoverflow.com/questions/75674159/airflow-outdated-dags-persisting-in-web-ui-after-gitsync | python, kubernetes, airflow, kubernetes-helm, airflow-webserver | 1,678,284,736 |
se_78577407 | stackoverflow | DATA_ENGINEERING | How do I speed up SQL Server inserts using the Airflow BigQueryToMsSqlOperator? | How do I speed up SQL Server inserts using the Airflow BigQueryToMsSqlOperator?
I am trying to use the Airflow operator BigQueryToMsSqlOperator to move a dataset from BigQuery to SQL Server (2019). The dataset is 9 columns of numeric, date, and integer data types. It currently transfers at about 600 rows per minute wh... | https://stackoverflow.com/questions/78577407/how-do-i-speed-up-sql-server-inserts-using-the-airflow-bigquerytomssqloperator | python, sql-server, google-bigquery, airflow, data-transfer | 1,717,529,889 |
se_77460692 | stackoverflow | DATA_ENGINEERING | Can not install apache-airflow-providers-mysql or mysqlclient: pkg-config error on MacOS | Can not install apache-airflow-providers-mysql or mysqlclient: pkg-config error on MacOS
Using MacOS Ventura 13.6, when trying to install apache-airflow-providers-mysql or mysqlclient package I get the following error:
$ pip install apache-airflow-providers-mysql
...
Collecting mysqlclient>=1.3.6 (from apache-airflow-... | https://stackoverflow.com/questions/77460692/can-not-install-apache-airflow-providers-mysql-or-mysqlclient-pkg-config-error | python, macos, airflow, libmysqlclient | 1,699,626,248 |
se_78573320 | stackoverflow | DATA_ENGINEERING | Airflow postgres not able to connect | Airflow postgres not able to connect
I have airflow setup to run in a docker container using the CeleryExecutor
Running a docker compose up on an AWS EC2 instance results in the following output:
The output will just hang on the following line
airflow-postgres | 2024-06-04 03:46:35.160 UTC [1] LOG: database system i... | https://stackoverflow.com/questions/78573320/airflow-postgres-not-able-to-connect | postgresql, docker, airflow | 1,717,473,518 |
se_78523500 | stackoverflow | DATA_ENGINEERING | The same DAGs with different parameters or the same tasks with different parameters in the one DAG | The same DAGs with different parameters or the same tasks with different parameters in the one DAG
In our project we have different clients and identical DAGs for them with different prefixes and parameters. For instance, we have mssql_to_bigquery DAG but it's separate for every client. That leads to the multiplicatio... | https://stackoverflow.com/questions/78523500/the-same-dags-with-different-parameters-or-the-same-tasks-with-different-paramet | python, airflow, google-cloud-composer | 1,716,471,052 |
se_74108368 | stackoverflow | DATA_ENGINEERING | Airflow DagRunAlreadyExists even after providing the custom run id and execution date | Airflow DagRunAlreadyExists even after providing the custom run id and execution date
I am Getting DagRunAlreadyExists exception even after providing the custom run id and execution date.
This occurs when there are multiple request within a second.
Here is the MWAA CLI call
def get_unique_key():
from datetime impo... | https://stackoverflow.com/questions/74108368/airflow-dagrunalreadyexists-even-after-providing-the-custom-run-id-and-execution | airflow, airflow-2.x, mwaa | 1,666,084,020 |
se_68121725 | stackoverflow | DATA_ENGINEERING | Airflow how to write API request results to BigQuery table or GCS file | Airflow how to write API request results to BigQuery table or GCS file
I am a novice trying to use Airflow to create a simple pipeline which gets data from an API and stores it in a BigQuery table. I have been successful decoding the json returned by the API and printing it out. I am stuck trying to figure out how to ... | https://stackoverflow.com/questions/68121725/airflow-how-to-write-api-request-results-to-bigquery-table-or-gcs-file | google-bigquery, cloud, airflow, pipeline | 1,624,562,843 |
se_78548318 | stackoverflow | DATA_ENGINEERING | How To Use Spark Submit Operator With Cassandra Remote Server In Apache Airflow | How To Use Spark Submit Operator With Cassandra Remote Server In Apache Airflow
I'm working airflow into the Docker container on WindowsPC. I have some problems with apache airflow spark submit operator. I want to write data to a remote Cassandra server.
When I was using df.write.save() I was getting An error occured ... | https://stackoverflow.com/questions/78548318/how-to-use-spark-submit-operator-with-cassandra-remote-server-in-apache-airflow | docker, apache-spark, cassandra, airflow, spark-cassandra-connector | 1,716,972,043 |
se_78561604 | stackoverflow | DATA_ENGINEERING | How to use dynamic task mapping in Airflow with KubernetesPodOperator | How to use dynamic task mapping in Airflow with KubernetesPodOperator
It seems like the only way to pull xcom values in a KubernetesPodOperator task is by setting do_xcom_push=True and using a templated xcom_pull, ie "{{ ti.xcom_pull(task_ids='foo', key='bar') }}". However, I need to use dynamic task mapping to creat... | https://stackoverflow.com/questions/78561604/how-to-use-dynamic-task-mapping-in-airflow-with-kubernetespodoperator | airflow, airflow-2.x, kubernetespodoperator, airflow-xcom | 1,717,179,432 |
se_78561355 | stackoverflow | DATA_ENGINEERING | Airflow takes a random python file as a DAG and breaks it | Airflow takes a random python file as a DAG and breaks it
I have a pipeline forlder with this structure:
project forlder 1
|--project forlder 2
|-- DAGS
|--dag1
|--dag2
|--utils
|-- __init__.py
|--python folder
|-- __init__.py
|-- python.py
pyt... | https://stackoverflow.com/questions/78561355/airflow-takes-a-random-python-file-as-a-dag-and-breaks-it | python, airflow, directed-acyclic-graphs, argv | 1,717,175,302 |
se_78435423 | stackoverflow | DATA_ENGINEERING | Build CI CD pipeline Airflow spark | Build CI CD pipeline Airflow spark
Using GCP Dataproc and Airflow composer, able to deploy the pyspark script and success the result. After this, I'm not aware of artifact preparation and Building CI CD pipeline, Which tool should i use. How to build a standard one.
Other ETL tools like Talend, The application itself ... | https://stackoverflow.com/questions/78435423/build-ci-cd-pipeline-airflow-spark | google-cloud-platform, pyspark, continuous-integration, airflow, google-cloud-dataproc | 1,714,984,292 |
se_78553808 | stackoverflow | DATA_ENGINEERING | Encrypting Variables in Airflow | Encrypting Variables in Airflow
Is there a way for me to encrypt these JSON files in Airflow? Specifically, to change the values in the "Is Encrypted" column from False to True. Thanks a lot
I have tried searching for information in the Airflow documentation. It is related to the FERNET_KEY, but I do not know the spec... | https://stackoverflow.com/questions/78553808/encrypting-variables-in-airflow | encryption, airflow | 1,717,057,964 |
se_78554265 | stackoverflow | DATA_ENGINEERING | Cannot execute: spark-submit | Cannot execute: spark-submit
I’m trying to automate a PySpark code using Airflow (i m using docker ) and I’m getting the following error:
This is the entire error msg in case it's not clear in the screenshot :
[2024-05-30, 09:53:15 UTC] {spark_submit.py:401} INFO - Spark-Submit cmd: spark-submit --master spark://**... | https://stackoverflow.com/questions/78554265/cannot-execute-spark-submit | docker, apache-spark, pyspark, airflow | 1,717,063,283 |
se_78550313 | stackoverflow | DATA_ENGINEERING | Airflow PostgresOperator pass variable to sql parameter | Airflow PostgresOperator pass variable to sql parameter
In my PostgresOperator, I would like to pass SQL file path as variable to sql parameter. I am reading this file path from a configuration file:
sql_execution = PostgresOperator(
task_id='sql_query',
postgres_conn_id=task_config['postgres_conn'],
... | https://stackoverflow.com/questions/78550313/airflow-postgresoperator-pass-variable-to-sql-parameter | airflow, airflow-2.x, airflow-taskflow | 1,716,993,877 |
se_78550028 | stackoverflow | DATA_ENGINEERING | How to use XComArg in the BigQueryInsertJobOperator `params` when creating dynamic task mappings? | How to use XComArg in the BigQueryInsertJobOperator `params` when creating dynamic task mappings?
So i have been dealing with this issue for a while now without any light...
I have a DAG that queries data from BigQuery, and depending on the results some Dynamic Task Mappings are created to insert an entry in another B... | https://stackoverflow.com/questions/78550028/how-to-use-xcomarg-in-the-bigqueryinsertjoboperator-params-when-creating-dynam | python, google-bigquery, airflow | 1,716,990,870 |
se_78549722 | stackoverflow | DATA_ENGINEERING | How to conditionally postpone or defer a DAG run in apache Airflow | How to conditionally postpone or defer a DAG run in apache Airflow
In Apache Airflow, I have dag that triggers manually by external organizations via rest API. Is there any standard mechanism to postpone or defer a DAG run based on certain conditions, such as checking if another run for a particular organization is st... | https://stackoverflow.com/questions/78549722/how-to-conditionally-postpone-or-defer-a-dag-run-in-apache-airflow | python, airflow | 1,716,987,732 |
se_78549044 | stackoverflow | DATA_ENGINEERING | the dag is getting triggered immediately when toggle is ON | the dag is getting triggered immediately when toggle is ON
This is my dag:
dag_pr_api = DAG(
dag_id='API-PERSONAL-COMPUTER',
default_args=args,
schedule_interval='30 07 * * *',
start_date=pendulum.yesterday('Europe/Berlin'),
catchup=False,
dagrun_timeout=timedelta(minutes=60),
tags=['ssh']
... | https://stackoverflow.com/questions/78549044/the-dag-is-getting-triggered-immediately-when-toggle-is-on | airflow, directed-acyclic-graphs, airflow-taskflow | 1,716,980,297 |
se_78511568 | stackoverflow | DATA_ENGINEERING | Connection => "access_control" | Connection => "access_control"
is there any possibility for an admin to prevent a DAG from using a connection ID in Airflow?
Purpose : Prevent a developer from using a specific connection.
Example : with a connection "CONN01_super_confidential" I want only DAGs of "team_a" to be able to use this connectio... | https://stackoverflow.com/questions/78511568/connection-access-control | airflow, airflow-connections | 1,716,291,124 |
se_78547701 | stackoverflow | DATA_ENGINEERING | Trigger DAG with config | Trigger DAG with config
Hi everyone, I am using Airflow v 2.9.0 on my Windows 11 PC using Docker Desktop, but when I click on Trigger button, I can't find Trigger DAG with config option
I want to pass input parameters as Config Parameters other than Variabes using Airflow UI. What can I do to enable Trigger DAG with c... | https://stackoverflow.com/questions/78547701/trigger-dag-with-config | airflow, key-value, airflow-2.x | 1,716,964,321 |
se_78278386 | stackoverflow | DATA_ENGINEERING | error on airflow dag while running dag on single day : HIVE_TOO_MANY_OPEN_PARTITIONS | error on airflow dag while running dag on single day : HIVE_TOO_MANY_OPEN_PARTITIONS
I'm using the DBT Pipeline along with an airflow DAG. The SQL query operates smoothly without any DBT code. However, when I execute the DAG for a single day, it throws an error labeled HIVE_TOO_MANY_OPEN_PARTITIONS. I've implemented p... | https://stackoverflow.com/questions/78278386/error-on-airflow-dag-while-running-dag-on-single-day-hive-too-many-open-partit | amazon-s3, airflow, amazon-athena, directed-acyclic-graphs, dbt | 1,712,302,235 |
se_78538775 | stackoverflow | DATA_ENGINEERING | ERROR - Unable to retrieve variable from secrets backend (Airflow) | ERROR - Unable to retrieve variable from secrets backend (Airflow)
We are using Airflow 2.6.
We have a number of DAGs which traditionally have run without issue.
Of late however we are seeing a number of issues relating to this error below;
ERROR - Unable to retrieve variable from secrets backend (MetastoreBackend). C... | https://stackoverflow.com/questions/78538775/error-unable-to-retrieve-variable-from-secrets-backend-airflow | amazon-web-services, airflow, secrets | 1,716,809,169 |
se_62263928 | stackoverflow | DATA_ENGINEERING | Count attempts in airflow sensor | Count attempts in airflow sensor
I have a sensor that waits for a file to appear in an external file system
The sensor uses mode="reschedule"
I would like to trigger a specific behavior after X failed attempts.
Is there any straightforward way to know how many times the sensor has already attempted to run the poke ... | https://stackoverflow.com/questions/62263928/count-attempts-in-airflow-sensor | airflow | 1,591,625,148 |
se_78538476 | stackoverflow | DATA_ENGINEERING | Airflow DockerOperator: argument list too long | Airflow DockerOperator: argument list too long
The Problem:
I've a DAG wherere I basically launch a docker Container with a bunch of volumes and environment variables.
One of these Environment variables is a Json String that must be computed with Python Code and then supplied to the DockerOperator. This JSON String se... | https://stackoverflow.com/questions/78538476/airflow-dockeroperator-argument-list-too-long | python, docker, airflow | 1,716,804,968 |
se_78524828 | stackoverflow | DATA_ENGINEERING | Airflow TriggerDagRunOperator ignores allowed_states parameter | Airflow TriggerDagRunOperator ignores allowed_states parameter
I've been trying to implement a master dag, that would trigger multiple dags, wait for their execution and proceed with the next tasks.
To trigger dags I used this structure:
dag3_trigger = TriggerDagRunOperator(
task_id="demo_dag_3_trigger",
trigg... | https://stackoverflow.com/questions/78524828/airflow-triggerdagrunoperator-ignores-allowed-states-parameter | airflow | 1,716,487,200 |
se_78529687 | stackoverflow | DATA_ENGINEERING | aws managed airflow: resources (vCPU & memory) shared between workers or not? | aws managed airflow: resources (vCPU & memory) shared between workers or not?
I would like to deploy an airflow cluster with aws managed airflow. aws offers different environment classes for airflow, e.g. "mw1.small" with 1 vCPU and 2 GB RAM [1]. Moreover, one can set a "minimum worker count" and a "maximum worke... | https://stackoverflow.com/questions/78529687/aws-managed-airflow-resources-vcpu-memory-shared-between-workers-or-not | amazon-web-services, airflow, mwaa | 1,716,567,468 |
se_78527250 | stackoverflow | DATA_ENGINEERING | ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)') | ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
I'm using apache-airflow in windows , while im trying to connect to mssql through odbc im getting this error below:
('IM002', '[IM002] [unixODBC][Driver Manager]Data source ... | https://stackoverflow.com/questions/78527250/im002-im002-unixodbcdriver-managerdata-source-name-not-found-and-no-d | python-3.x, docker, airflow, etl | 1,716,537,933 |
se_78527060 | stackoverflow | DATA_ENGINEERING | Airflow UI doesn't show dags | Airflow UI doesn't show dags
I'm using airflow for an enough time, but this is the first time, when I don't know why it's not working correctly.
I have my django app and airflow as a scheduler (both on docker), it's working good when i was using one postgres db for both of them, but when i tried to split them and ... | https://stackoverflow.com/questions/78527060/airflow-ui-doesnt-show-dags | django, postgresql, airflow | 1,716,535,495 |
se_78286978 | stackoverflow | DATA_ENGINEERING | Amazon Managed Airflow (MWAA) An error occurred (ResourceNotFoundException) after working for a period of time | Amazon Managed Airflow (MWAA) An error occurred (ResourceNotFoundException) after working for a period of time
I have tried a couple of times to get a complex data transfer process working on MWAA with different sized instances.
The DAG has 500+ tasks, and works as intended when first setup. However, after a period of... | https://stackoverflow.com/questions/78286978/amazon-managed-airflow-mwaa-an-error-occurred-resourcenotfoundexception-afte | airflow, mwaa | 1,712,474,551 |
se_78522528 | stackoverflow | DATA_ENGINEERING | airflow : Task exited with return code -9 | airflow : Task exited with return code -9
I'm attempting to run a Python code for OCR using EasyOCR within an Airflow environment in a Docker setup, but I encountered the following error: {local_task_job_runner.py:234} INFO - Task exited with return code -9
Upon investigation, it appears to be an out of memory error. ... | https://stackoverflow.com/questions/78522528/airflow-task-exited-with-return-code-9 | docker, airflow, docker-desktop, airflow-webserver | 1,716,460,709 |
se_55274601 | stackoverflow | DATA_ENGINEERING | Airflow: ValueError: Unable to configure handler 'processor' - wasb logger | Airflow: ValueError: Unable to configure handler 'processor' - wasb logger
I am trying to configure remote logging with Azure blob.
Airflow version: 1.10.2
Python: 3.6.5
Ubuntu: 18.04
Following are the step I did:
In $AIRFLOW_HOME/config/log_config.py, I have put REMOTE_BASE_LOG_FOLDER = 'wasb-airflow-log... | https://stackoverflow.com/questions/55274601/airflow-valueerror-unable-to-configure-handler-processor-wasb-logger | airflow, airflow-scheduler | 1,553,148,256 |
se_78517071 | stackoverflow | DATA_ENGINEERING | Using text field in Airflow DAG parameters | Using text field in Airflow DAG parameters
There are an option to pass string variable into Airflow DAG with Param class.
However, I want to pass the whole text, in my case: yaml as text.
I was trying to do it with array/object types of Param class, but "array" type just truncate each line of yaml file, and object typ... | https://stackoverflow.com/questions/78517071/using-text-field-in-airflow-dag-parameters | airflow | 1,716,375,749 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.