Airflow DockerOperator: The Basics (and more 🤫)

  Рет қаралды 17,797

Data with Marc

Data with Marc

Күн бұрын

Пікірлер: 41
@dr_flunks
@dr_flunks 3 жыл бұрын
it's actually super helpful that you display the folder/file structure of everything you're using as you go along. very well thought out!
@anthonyloganhall
@anthonyloganhall 3 жыл бұрын
This is how we have our environment setup and it works very well.
@saritkumarsi4166
@saritkumarsi4166 3 жыл бұрын
Thanks Marc for the video on one of the operators I use extensively :)
@joshuabodyfelt1239
@joshuabodyfelt1239 Жыл бұрын
Wonderful job Marc! If I could amend this - would be awesome to have a followup video discussing the variety of different Docker registries, and how to connect to them with the Docker Connection.
@aerobot6571
@aerobot6571 Жыл бұрын
Merci Marc, premiere video de toi que je regarde : c'est clair, utile et complet. Ben je vais voir les autres ;D
@MarcLamberti
@MarcLamberti Жыл бұрын
Ben merci :)
@PedroFernandes-n9v
@PedroFernandes-n9v Жыл бұрын
Docker Operator doesn't seem to work when I run airflow in docker containers (using a docker-compose) how can I fix this ? edit: the only solution i found was adding to volumes: - /var/run/docker.sock:/var/run/docker.sock and setting user: root instead of user: "${AIRFLOW_UID:-50000}:0" but apparently this isn't the safest way??? Anyone got a cleaner way to fix this ?
@БогданБыховец-к4е
@БогданБыховец-к4е Жыл бұрын
I am trying to use DockerOperator but ger en error: PermissionError(13, 'Permission denied') I shoul set chmod 666 /var/run/docker.sock to avoid it. Can i use DockerOperator with chmod 660 /var/run/docker.sock?
@ВикторБычков-д2з
@ВикторБычков-д2з 8 ай бұрын
Please tell me, have you solved this problem? I have the same problem
@chadoulimanel8527
@chadoulimanel8527 3 ай бұрын
did u solved it ?
@mbkhan1000
@mbkhan1000 Жыл бұрын
I understand we can use the templating to pass variables/xcoms/connections to env variables in the docket container, but is there anyway to push values to xcomms from within a docket container? I understand that the process running in the container is isolated from airflow (unless it connects through the rest api?)
@gregh6586
@gregh6586 Жыл бұрын
Why can't you use `retrieve_output_path`? What exactly are you trying to do?
@mbkhan1000
@mbkhan1000 Жыл бұрын
@@gregh6586 trying to know if we can push to xcoms within a Docker operator task
@yuricastro522
@yuricastro522 Жыл бұрын
If I'm using an airflow container to call another container, how can I mount volumes generated inside the airflow container to the other ? I'm getting errors trying this with this source parameter
@lokeshkumar1365
@lokeshkumar1365 3 жыл бұрын
Could you make video on best practices for kubernetesexecuter on k8s deployment and different tasks can run parallel?
@data-freelancer
@data-freelancer 9 ай бұрын
Hi sir, can this work on production like cloud composer?
@PedroFernandes-n9v
@PedroFernandes-n9v Жыл бұрын
when running a DockerOperator on Airflow running in a Docker Container, the mounts have to be between the DockerOperator and the actual Host machine.. is there any way to avoid this? Can we create mounts betweeen the Airflow Container and the DockerOperator Container ?
@Ayush_1908
@Ayush_1908 2 жыл бұрын
Hi Marc, is it possible to use dockeroperator for running java code on airflow? Or any better option?
@abhishekacharya5069
@abhishekacharya5069 2 жыл бұрын
Hi Marc, Thanks for the video and it really helped me in understanding airflow. Actually I'm trying to pull the docker image by using dockeroperator on Apache Airflow. But wheneever I trigger the dag again and again, it pulls the image from docker hub. Can I save the docker image somewhere , so that whenever the dag is triggered it should not pull from docker hub. It will be very helpful, if you help me with this. Thanks
@vaib5917
@vaib5917 2 жыл бұрын
Hi, I really need to know if we put the python script into a container and run it using DockerOperator, how can we pass the values of Variables from AirFlow Admin UI t the container ?? Please help.
@mbkhan1000
@mbkhan1000 Жыл бұрын
Templating into docker container environment variables
@736939
@736939 Жыл бұрын
How to send data via XCom from DockerOperator? It there any better way than just print the values? how to run PythonOperator like script from DockerOperator let's say I want to run not the whole file but the function inside the file, how to do it via DockerOperator?
@emanuelgiannattasio3366
@emanuelgiannattasio3366 Жыл бұрын
Marc, in your opinion, in which cases would it be convenient to use DockerOperator over PythonVirtualenvOperator?
@MarcLamberti
@MarcLamberti Жыл бұрын
IMHO the dockeroperator is great as your run a docker image so you can encapsulate your task in it. That can help for testing and versioning. Otherwise, go with the python virtual env operator
@ReenanOFC
@ReenanOFC 3 жыл бұрын
Is it possible to set different schedules based on tasks?
@MarcLamberti
@MarcLamberti 3 жыл бұрын
Nop
@danielpapukchiev3754
@danielpapukchiev3754 3 жыл бұрын
split in multiple DAGs
@trench6118
@trench6118 3 жыл бұрын
With a branchpythonoperator you can - for example, I have some tasks which have changed from daily to hourly within a client DAG (all sources for that client are in the same DAG). What I did was add a function to check the execution_date.hour and if it was a certain time, I would return all extract task IDs. Otherwise, I would return only the hourly task IDs. The result is that my daily tasks are skipped each hour unless it is say 13:00 UTC, and my hourly tasks run each hour. It makes the DAG a bit messy though because of so many skipped tasks
@kimted3272
@kimted3272 3 жыл бұрын
hello Marc, thinking of listening yout lectures on udemy. are there any lectures that covers kuberenetesPodOperator? think operartor reference is the closest, but asking just in case if u already have a video. thanks :)
@eduardocarrerah3704
@eduardocarrerah3704 3 жыл бұрын
is this a replacement for k8soperator?
@MarcLamberti
@MarcLamberti 3 жыл бұрын
Nop
@jagadishlucky1793
@jagadishlucky1793 2 жыл бұрын
Hi Marc, thanks for the videos it really helped me to understand airflow effectively. Actually, Iam trying to generate dynamicness in tasks creation. Based on the config parameter from UI the dag has to run the tasks. For Ex: If conf parameter has t1,t2 as true, there should be two tasks running. And if I increase the tasks in config params(t1,t2,t3,t4) it should run that many tasks. I tried multiple approached using operators,its not happening. Can you please suggest an approach? ---> Thank you
@DhirajAvasthi
@DhirajAvasthi Жыл бұрын
getting this error requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))
@vladdank9158
@vladdank9158 Жыл бұрын
Anyone figure out how to get this to work with Airflow itself running on Docker? Kind of lost. It's mentioned in the video around 8:03. I'm on Windows so it's kind of horrible LOL
@PedroFernandes-n9v
@PedroFernandes-n9v Жыл бұрын
the only solution i found was adding to volumes: - /var/run/docker.sock:/var/run/docker.sock and setting user: root instead of user: "${AIRFLOW_UID:-50000}:0" but apparently this isn't the safest way??? Anyone got a cleaner way to fix this ?
@PrakashReddyK
@PrakashReddyK 3 жыл бұрын
Hi 👋
@MarcLamberti
@MarcLamberti 3 жыл бұрын
it's been a while
@slimebwoy
@slimebwoy 2 жыл бұрын
I know this is 6+ months after this has been posted but I think your teach would be a bit more effective if you took the time with your hand writing. If I saw the diagram at 3:25 after listening to you talk about it, I'd have a hard time understanding what it means. Just wanted to provide a helpful tip!
@MarcLamberti
@MarcLamberti 2 жыл бұрын
thank you for the helpful feedback :)
@Klayhamn
@Klayhamn 3 жыл бұрын
space at the end of the string as actual functionality determiner? who the hell designed that bullshit?
Airflow DAG: Coding your first DAG for Beginners
20:31
Data with Marc
Рет қаралды 233 М.
Airflow with DBT tutorial - The best way!
17:54
Data with Marc
Рет қаралды 50 М.
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 195 МЛН
Programing on the Macintosh
16:51
Mac Legacy Labs
Рет қаралды 60
Airflow Sensors : Get started in 10 mins
11:55
Data with Marc
Рет қаралды 28 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 352 М.
Bhavani Ravi - Apache Airflow in Production - Bad vs Best Practices
35:55
Don't Use Apache Airflow
16:21
Bryan Cafferky
Рет қаралды 98 М.
Airflow XCom for Beginners - All you have to know in 10 mins
11:36
Data with Marc
Рет қаралды 46 М.
Airflow Dynamic DAGs: The powerful way with Jinja and YAML
13:43
Data with Marc
Рет қаралды 16 М.
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН