Cloud Storage Analyzer project.
A web application providing features such as data aggregation, anomalies detection and data inspection of files residing in AWS S3 buckets The tool leverages AWS Athena by using its JDBC driver
- Creation 01 March 2017
- Author Tewfik Ghariani
Hi there!
Before starting to use the application, you have to set your environment. Don't worry, you need to follow these steps and you'll be ready!
$ sudo apt-get install python3-pip
$ sudo pip3 install virtualenv$ virtualenv venvActivate your virtual environment, (You can turn it off afterwards by typing simply deactivate)
$ source venv/bin/activatePostgreSQL 9.4 version is mandatory since the application uses the JsonB object type.
$ sudo apt-get install postgresql-9.4
$ sudo su - postgres
$ psqlCREATE DATABASE athena_db;
CREATE USER si_aps WITH PASSWORD {% _<password>_ %} ;
ALTER ROLE si_aps SET client_encoding TO 'utf8';
ALTER ROLE si_aps SET default_transaction_isolation TO 'read committed';
ALTER ROLE si_aps SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE athena_db TO si_aps;
\q$ exitRef : Django + Postgres
$ sudo apt-get install npm
$ sudo npm install -g bowerIn case of error:
$ sudo ln -s /usr/bin/bower /usr/local/bin/boweror
$ sudo ln -s /usr/bin/nodejs /usr/bin/node$ pip install -r requirements.txt$ python manage.py bower update$ python manage.py makemigrations
$ python manage.py migrate$ python manage.py collectstatic (Only in prod)
$ python manage.py createsuperuser$ python manage.py runserverYour environment is set up Follow these instructions to use our prototype and contribute in the development process of our analyzer