Snowflake-Labs / sfquickstarts

Follow along with our tutorials to get you up and running with the Snowflake Data Cloud.
Apache License 2.0
332 stars 628 forks source link

Airflow fails to start due to incorrect .env file configuration #1380

Open tyukei opened 3 months ago

tyukei commented 3 months ago

Describe the bug Following the tutorial on Snowflake's Quickstarts for data engineering with Apache Airflow, Airflow fails to start. The issue is related to the configuration in the .env file.

URL of where you see the bug https://github.com/Snowflake-Labs/sfquickstarts/blob/master/site/sfguides/src/data_engineering_with_apache_airflow_ja/data_engineering_with_apache_airflow_ja.md

To Reproduce Steps to reproduce the behavior:

  1. Go to https://quickstarts.snowflake.com/guide/data_engineering_with_apache_airflow_ja/index.html?index=..%2F..index#6
  2. Follow the steps to set up Airflow.
  3. Notice that Airflow fails to start.

Expected behavior Airflow should start successfully with the correct configuration in the .env file.

Desktop (please complete the following information):

Additional context Original code in https://quickstarts.snowflake.com/guide/data_engineering_with_apache_airflow_ja/index.html?index=..%2F..index#1

_PIP_ADDITIONAL_REQUIREMENTS=dbt==0.19.0

Fix To resolve the issue, update the .env file with the following line:

_PIP_ADDITIONAL_REQUIREMENTS=dbt-snowflake==1.7.3

This change will ensure that the necessary dependencies are installed, allowing Airflow to start successfully.

Thanks!