forked from Sunbird-Ed/ml-analytics-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
33 lines (27 loc) · 1.42 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
source /etc/profile
export PYSPARK_PYTHON=python3
export TZ=Asia/Kolkata date
echo "RUNNING JOB"
echo ""
echo "$(date)"
echo "====================================="
echo "Daily Projects Batch Job Ingestion == Started"
. /opt/sparkjobs/spark_venv/bin/activate && /opt/sparkjobs/spark_venv/lib/python3.6/site-packages/pyspark/bin/spark-submit --driver-memory 5g /opt/sparkjobs/source/projects/projects_data_extraction.py
echo "Daily Projects Batch Job Ingestion == Completed"
echo "*************************************"
echo ""
echo "$(date)"
echo "====================================="
echo "Daily Observation Status Batch Job Ingestion == Started"
. /opt/sparkjobs/spark_venv/bin/activate && /opt/sparkjobs/spark_venv/lib/python3.6/site-packages/pyspark/bin/spark-submit --driver-memory 5g /opt/sparkjobs/source/observations/status/sl_py_obs_submission_status.py
echo "Daily Observation Status Batch Job Ingestion == Completed"
echo "*************************************"
echo ""
echo "$(date)"
echo "====================================="
echo "Daily Assessment Report Batch Job Ingestion == Started"
. /opt/sparkjobs/spark_venv/bin/activate && /opt/sparkjobs/spark_venv/lib/python3.6/site-packages/pyspark/bin/spark-submit --driver-memory 5g /opt/sparkjobs/source/assessment/assessment_streaming_report.py
echo "Daily Assessment Report Batch Job Ingestion == Completed"
echo "*************************************"
echo "COMPLETED"