It’s an application used fetch the data from kolibri central server and transformed this data into readable format for user. The data synchronizer should synchronize the relevant data (which is needed for the visualization system) from the Kolibri database to the Nalanda database as well as perform any additional transformation. Using kolibri synchronizer we transfrorm data into some useful metrics, which helps the program manager gain more insight from the data.
-
Install database. Dont do it if database is installed already.
sudo apt-get update
sudo apt-get install -y mysql-server
-
Create password:******, user:root
sudo mysql_secure_installation
-
Check the status of the running system
systemctl status mysql.service
-
Install git
sudo apt-get install git
-
Create directory structure if not present already
mkdir Nalanda
cd Nalanda/
-
Copy code using git clone
git clone https://github.com/nalandaproject/Kolibri-ETL.git
cd Kolibri-ETL/Schema/
-
Create staging db by running following command
mysql -u root -p<your mysql passowrd> --local-infile=1 < create_staging.sql
-
Create nalanda db by running following command
mysql -u root -p<your mysql password> --local-infile=1 < create_nalanda_latest.sql
-
Install dependencies
sudo apt install python3-pip
virtualenv -p python3 ENV
-
Create virtual environment
cd Kolibri-ETL/
source ENV/bin/activate
-
Install mysqlclient
sudo apt-get install -y python-dev libmysqlclient-dev
sudo apt-get install python3-dev
-
Install dependencies
pip3 install -r requirements.txt
-
Steps for running schedular
1.Go to Code folder to run folllowing commands
chmod +x Schedular.py
nohup python3 Schedular.py &
2.Press enter
-
Steps for kill schedular
kill -9 <process id>