++ date
+ echo 'Starting at Wed Apr 8 13:55:01 +01 2020'
Starting at Wed Apr 8 13:55:01 +01 2020
+ '[' 1 -ne 1 ']'
+ configFile=/DATA/scripts/EIBServicesManager/servicesConfig.conf
+ IFS=
+ servicesList=()
+ read line
+ configurationList+=($line)
+ read line
+ configurationList+=($line)
+ read line
+ configurationList+=($line)
+ read line
+ configurationList+=($line)
+ read line
+ configurationList+=($line)
+ read line
+ configurationList+=($line)
+ read line
+ configurationList+=($line)
+ read line
+ IFS==
+ read -ra NODECONF
+ NODETYPE=A
+ echo A
A
+ (( i = 1 ))
+ (( i < 7 ))
+ echo -----------------------
-----------------------
+ checkService 'IOT spark job,/DATA/apps/ProcessDataSparkJob/,/DATA/apps/spark-2.3.1-bin-hadoop2.7/bin/spark-submit --class com.ocp.jfc2.iot.dataprocessor.IoTDataProcessor ProcessDataSparkJob.jar,iot.properties &> /DATA/apps/ProcessDataSparkJob/iot_run.log &,com.ocp.jfc2.iot.dataprocessor.IoTDataProcessor,A-P' A
+ IFS=,
+ read -ra SERVICECONF
++ pgrep -f com.ocp.jfc2.iot.dataprocessor.IoTDataProcessor
+ PID=1665
+ '[' -z 1665 ']'
+ echo 'IOT spark job RUNNING'
IOT spark job RUNNING
+ '[' A = P -a A-P = A-P ']'
+ (( ++i ))
+ (( i < 7 ))
+ echo -----------------------
-----------------------
+ checkService 'Plant spark job,/DATA/apps/ProcessDataSparkJob/,/DATA/apps/spark-2.3.1-bin-hadoop2.7/bin/spark-submit --class com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor ProcessDataSparkJob.jar,ProcessAndFilterDataJobs_plant.properties &> /DATA/apps/ProcessDataSparkJob/plant_run.log &,com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor,A-P' A
+ IFS=,
+ read -ra SERVICECONF
++ pgrep -f com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor
+ PID=38989
+ '[' -z 38989 ']'
+ echo 'Plant spark job RUNNING'
Plant spark job RUNNING
+ '[' A = P -a A-P = A-P ']'
+ (( ++i ))
+ (( i < 7 ))
+ echo -----------------------
-----------------------
+ checkService 'JFC4 spark job,/DATA/apps/ProcessDataSparkJob/,/DATA/apps/spark-2.3.1-bin-hadoop2.7/bin/spark-submit --class com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor ProcessDataSparkJob.jar,/DATA/apps/ProcessDataSparkJob/JFC4/ProcessAndFilterDataJobs_plant.properties &> /DATA/apps/ProcessDataSparkJob/JFC4_run.log &,com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor,A-P' A
+ IFS=,
+ read -ra SERVICECONF
++ pgrep -f com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor
+ PID=38989
+ '[' -z 38989 ']'
+ echo 'JFC4 spark job RUNNING'
JFC4 spark job RUNNING
+ '[' A = P -a A-P = A-P ']'
+ (( ++i ))
+ (( i < 7 ))
+ echo -----------------------
-----------------------
+ checkService 'JFC3 spark job,/DATA/apps/ProcessDataSparkJob/,/DATA/apps/spark-2.3.1-bin-hadoop2.7/bin/spark-submit --class com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor ProcessDataSparkJob.jar,/DATA/apps/ProcessDataSparkJob/JFC3/ProcessAndFilterDataJobs_plant.properties &> /DATA/apps/ProcessDataSparkJob/JFC3_run.log &,com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor,A-P' A
+ IFS=,
+ read -ra SERVICECONF
++ pgrep -f com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor
+ PID=38989
+ '[' -z 38989 ']'
+ echo 'JFC3 spark job RUNNING'
JFC3 spark job RUNNING
+ '[' A = P -a A-P = A-P ']'
+ (( ++i ))
+ (( i < 7 ))
+ echo -----------------------
-----------------------
+ checkService 'JFC1 spark job,/DATA/apps/ProcessDataSparkJob/,/DATA/apps/spark-2.3.1-bin-hadoop2.7/bin/spark-submit --class com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor ProcessDataSparkJob.jar,/DATA/apps/ProcessDataSparkJob/JFC1/ProcessAndFilterDataJobs_plant.properties &> /DATA/apps/ProcessDataSparkJob/JFC1_run.log &,com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor,A-P' A
+ IFS=,
+ read -ra SERVICECONF
++ pgrep -f com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor
+ PID=38989
+ '[' -z 38989 ']'
+ echo 'JFC1 spark job RUNNING'
JFC1 spark job RUNNING
+ '[' A = P -a A-P = A-P ']'
+ (( ++i ))
+ (( i < 7 ))
+ echo -----------------------
-----------------------
+ checkService 'SIEMENS spark job,/DATA/apps/ProcessDataSparkJob/,/DATA/apps/spark-2.3.1-bin-hadoop2.7/bin/spark-submit --class com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor ProcessDataSparkJob.jar,/DATA/apps/ProcessDataSparkJob/SIEMENS/ProcessAndFilterDataJobs_plant.properties &> /DATA/apps/ProcessDataSparkJob/SIEMENS_run.log &,com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor,A-P' A
+ IFS=,
+ read -ra SERVICECONF
++ pgrep -f com.ocp.jfc2.plant.dataprocessor.PlantDataProcessor
+ PID=38989
+ '[' -z 38989 ']'
+ echo 'SIEMENS spark job RUNNING'
SIEMENS spark job RUNNING
+ '[' A = P -a A-P = A-P ']'
+ (( ++i ))
+ (( i < 7 ))
+ echo Done
Done
Partager