This project comprises a suite of Python scripts designed to analyze SQL query logs and predict the memory usage of SQL queries. It involves downloading query logs from AWS Athena, processing these logs, and using machine learning to predict the memory usage of SQL queries.
Make sure you have Docker installed and configured properly for these commands to work as expected. Additionally, ensure that the scripts in the scripts directory are correctly configured and that any necessary environment variables or configurations are set before running the commands
Follow these steps to set up the project and start using it:
make local-venv-setup
This command will create a virtual environment named venv and install the dependencies listed in requirements.txt.
make start-app-docker
This command will execute the start-app.sh script located in the scripts directory, which presumably starts your application using Docker.
If necessary, you can run the following command to clean up any resources used by your application:
make clean-up-resources
This will execute the clean-up-resources.sh script located in the scripts directory.
- If you are getting errors that are connected to the permissions, try to run app with root rights.
- If you are getting errors that are saying:
ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
, please run the following command:
sudo chmod 777 /var/run/docker.sock
This project is licensed under the Apache License 2.0