当前位置: 首页 > news >正文

Airflow - Installation

 

frank@ZZHPC:~$ zvact
(zvenv) frank@ZZHPC:~$ python --version
Python 3.12.3
(zvenv) frank@ZZHPC:~$ pip install apache-airflow

 

(zvenv) frank@ZZHPC:~$ airflow db migrate
DB: sqlite:////home/frank/airflow/airflow.db
Performing upgrade to the metadata database sqlite:////home/frank/airflow/airflow.db
2025-12-09T00:58:21.339796Z [info     ] Context impl SQLiteImpl.       [alembic.runtime.migration] loc=migration.py:211
2025-12-09T00:58:21.339959Z [info     ] Will assume non-transactional DDL. [alembic.runtime.migration] loc=migration.py:214
2025-12-09T00:58:21.340531Z [info     ] Context impl SQLiteImpl.       [alembic.runtime.migration] loc=migration.py:211
2025-12-09T00:58:21.340642Z [info     ] Will assume non-transactional DDL. [alembic.runtime.migration] loc=migration.py:214
2025-12-09T00:58:21.340841Z [info     ] Creating Airflow database tables from the ORM [airflow.utils.db] loc=db.py:684
2025-12-09T00:58:21.340916Z [info     ] Creating context               [airflow.utils.db] loc=db.py:689
2025-12-09T00:58:21.341216Z [info     ] Binding engine                 [airflow.utils.db] loc=db.py:691
2025-12-09T00:58:21.341321Z [info     ] Pool status: Pool size: 5  Connections in pool: 0 Current Overflow: -3 Current Checked out connections: 2 [airflow.utils.db] loc=db.py:693
2025-12-09T00:58:21.341385Z [info     ] Creating metadata              [airflow.utils.db] loc=db.py:695
2025-12-09T00:58:21.503320Z [info     ] Getting alembic config         [airflow.utils.db] loc=db.py:698
2025-12-09T00:58:21.503889Z [info     ] Stamping migration head        [airflow.utils.db] loc=db.py:705
2025-12-09T00:58:21.504552Z [info     ] Context impl SQLiteImpl.       [alembic.runtime.migration] loc=migration.py:211
2025-12-09T00:58:21.504648Z [info     ] Will assume non-transactional DDL. [alembic.runtime.migration] loc=migration.py:214
2025-12-09T00:58:21.518651Z [info     ] Running stamp_revision  -> cc92b33c6709 [alembic.runtime.migration] loc=migration.py:622
2025-12-09T00:58:21.522248Z [info     ] Airflow database tables created [airflow.utils.db] loc=db.py:708
Database migrating done!