#!/usr/bin/env bash

source ../../dmp_env.sh

LOG_TIME=$(date -d "$ScheduleTime" +"%Y-%m-%d")
fors=400

concurrent=10000

java -cp ../../${JAR}  mobvista.dmp.datasource.ali.UCRequest ${fors} ${concurrent} ${LOG_TIME} "IMEI_MD5"


#
#
##!/usr/bin/env bash
## # # # # # # # # # # # # # # # # # # # # #
## @author : jiangfan
## @date : 2021-01-19 18:00:51
## # # # # # # # # # # # # # # # # # # # # #
#
#source ../../dmp_env.sh
#
#LOG_TIME=$(date -d "$ScheduleTime" +"%Y-%m-%d")
#
## fors=100
#
## concurrent=10000
#
## java -cp /root/workspace/DMP-1.0.3-jar-with-dependencies.jar mobvista.dmp.datasource.ali.UCRequest ${fors} ${concurrent} ${LOG_TIME} "IMEI_MD5"
#
#if [[ ! -d "/home/hadoop/jiangfan" ]]; then
#  mkdir /home/hadoop/jiangfan
#
#  cd /home/hadoop/jiangfan/
#
#  hdfs dfs -get s3://mob-emr-test/wangjf/data/pem/dataplatform_cn.pem .
#
#  chmod 600 dataplatform_cn.pem
#fi
#
#fors=250
#concurrent=10000
#device_type="IMEI_MD5"
#
#ssh -o "StrictHostKeyChecking no" -i /home/hadoop/jiangfan/dataplatform_cn.pem -l root 182.92.177.185 "/root/jiangfan/uc_lahuo/exec_uc_request.sh ${fors} ${concurrent} ${LOG_TIME} ${device_type}"
#
#
#if [[ $? -ne 0 ]];then
#  exit 255
#fi
#
#echo "kill java process begin"
#
#sleep 300
#
#shell=" -cp /root/jiangfan/uc_lahuo/DMP-1.0.3-jar-with-dependencies.jar mobvista.dmp.datasource.ali.UCRequest ${fors} ${concurrent} ${LOG_TIME} ${device_type}"
#
#ssh -o "StrictHostKeyChecking no" -i /home/hadoop/jiangfan/dataplatform_cn.pem -l root 182.92.177.185 "sh -x /root/jiangfan/uc_lahuo/check_process.sh '${shell}'"
#
#if [[ $? -ne 0 ]];then
#  exit 255
#fi
#
