Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lekt9/is3107_group_16
https://github.com/lekt9/is3107_group_16
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lekt9/is3107_group_16
- Owner: lekt9
- License: mit
- Created: 2023-04-23T15:56:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-23T16:43:14.000Z (over 1 year ago)
- Last Synced: 2024-10-16T22:02:29.263Z (3 months ago)
- Language: Python
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
This README document provides instructions for setting up Poetry and Airflow configuration path.
## Setup Poetry
To setup Poetry, follow the steps below:
1. Install Poetry if you haven't already. You can find the installation instructions for Poetry [here](https://python-poetry.org/docs/#installation).
2. For M1 Mac, some additional setup is required for grpcio and pyarrow. Run the following commands to set up the required environment variables:
```
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
export OPENSSL_ROOT_DIR="/opt/homebrew/Cellar/openssl@3/3.0.1"
```This will ensure that grpcio and pyarrow work correctly on your M1 Mac.
## Set up Airflow configuration path
To set up the Airflow configuration path, follow the steps below:
1. Open your terminal and run the following command:
```
export AIRFLOW_HOME=~/Projects/akee-predict/src
```This sets the `AIRFLOW_HOME` environment variable to the path where you want to store your Airflow configuration files. Replace `~/Projects/akee-predict/src` with the path where you want to store your configuration files.
2. Once you have set the `AIRFLOW_HOME` environment variable, you can initialize your Airflow database and start the webserver by running the following commands:
```
airflow db init
airflow webserver
```This will initialize your Airflow database and start the webserver. You can now access the Airflow web UI by opening your web browser and going to `http://localhost:8080`.
That's it! You have successfully set up Poetry and Airflow configuration path.