Airflow introduction and installation: Airflow Tutorial P1 - Subtítulos bilingües

Hello everybody this is Koda2J.
In this tutorial series we are going to learn Apache air flow.
So what is Apache air flow?
It is an open-sourced tool which we can create schedule and monitor many kinds of work flow.
It is the perfect tool to use when we have a workflow with Taskers 123 which should be run periodically in specific order.
Airflow is based on Python.
If you already have some coding experience with Python, you are good to go.
Okay, let's get started.
First of all, let's create a Python project and in-store airflow.
I'm going to open Visual Studio Code to create a project folder and open it.
And I will name it airflow tutorial.
on the desktop directory.
Let's open a terminal and check whether I am in the right directory or not by command PWD.
Since airflow 2.1 requires a Python version above 3.6.
Let's check my Python 3 version by command Python 3 minus minus version.
As we can see, my local Python 3 version is 3.6.7 and meets the requirements.
That's great.
You can also use version 3.7 or 3.8.
Let's create a Python environment with command Python 3 minus m v inf with environment folder named py underscore inf Once created successfully,
we can see the py underscore info in the explore section.
Now let's active the Python environment, use command source py underscore info bin active.
When activated, we can see the py, underscore inf on the very left of the terminal prompts.
Next step, I'm going to install airflow locally.
Let's open browser and search Apache airflow official GitHub repository.
and navigate to the in-store section.
I will copy the in-store command and paste it in the terminal before I the-store section.
I have to change the dependency to many match my local Python version.
Instead of 3.7, we change to 3.6.
Oops.
There is an error of missing GCC.
To solve this problem, I have to run command Xcode minus select in store to in store Mac OS command line tools.
The installation takes a of minutes.
After we execute the Pips in-store command again.
This time, there's no error.
Therefore, Airflow is in-store successfully.
Okay, next step, I'm going to initialize the database for Airflow.
Before that, we have to indicate the Airflow home directory.
By default, it will create a folder Airflow in Home Directory.
However, I would like to have everything in my project directory, so I export the Airflow Home Environment variable to my current directory.
Then I will initialize the database with command airflow DB init.
This command will create an SQLite database, a log folder, and some configuration files.
Next, I will start airflow web server by command airflow web server minus P8080 by default 8080 is the port to be used.
If you want, you can also use other port for example 8088, 8082 as you wish.
Then let's open the link in the browser.
It requires me username and password to login.
Okay, let's go back into the terminal, stop the airflow web server and create one user
by comment, airflow users create and give value to parameters as shown in the help output.
By setting the power password, we start the air flow web server again and we are ready to sign in.
It looks great.
I can see all the example decks, but over that it says there's no schedule running.
Okay, in order to execute the decks we have to start the air flow scheduler.
Let's go back to VS Code, open another terminal.
First, we have to make sure we export the airflow home environment variable as we did in the first terminal.
Then we execute the command airflow sketch.
Now, let's go back to browser and refresh the page.
We can see, boom, the message is gone.
It means the scheduler is running properly.
Let's turn on one example deck by clicking the button before the deck.
From the tree view we can see this deck has multiple tasks.
When we click the refresh button on the right hand side.
We can see the tasks have been scheduled and executed.
And it has been marked as dark green once it has been run successfully.
That's it!
Idioma de traducción
Seleccionar

Desbloquea más funciones

Instala la extensión Trancy para desbloquear más funciones, incluyendo subtítulos de IA, definiciones de palabras de IA, análisis gramatical de IA, habla de IA, etc.

feature cover

Compatible con las principales plataformas de video

Trancy no solo proporciona soporte de subtítulos bilingües para plataformas como YouTube, Netflix, Udemy, Disney+, TED, edX, Kehan, Coursera, sino que también ofrece traducción de palabras/frases de IA, traducción inmersiva de texto completo y otras funciones para páginas web regulares. Es un verdadero asistente de aprendizaje de idiomas todo en uno.

Navegadores de todas las plataformas

Trancy es compatible con todos los navegadores de plataformas, incluida la extensión del navegador Safari de iOS.

Modos de visualización múltiple

Admite modos de teatro, lectura, mixtos y otros modos de visualización para una experiencia bilingüe integral.

Modos de práctica múltiple

Admite modos de dictado de oraciones, evaluación oral, opción múltiple, dictado y otros modos de práctica.

Resumen de video de IA

Utiliza OpenAI para resumir videos y comprender rápidamente el contenido clave.

Subtítulos de IA

Genera subtítulos de IA precisos y rápidos para YouTube en solo 3-5 minutos.

Definiciones de palabras de IA

Toca las palabras en los subtítulos para buscar definiciones, con definiciones impulsadas por IA.

Análisis gramatical de IA

Analiza la gramática de las oraciones para comprender rápidamente los significados de las oraciones y dominar puntos de gramática difíciles.

Más funciones web

Además de los subtítulos de video bilingües, Trancy también proporciona traducción de palabras y traducción de texto completo para páginas web.

Listo para empezar

Prueba Trancy hoy y experimenta sus características únicas por ti mismo

Descargar