realtime_join_new_hour.sh 460 Bytes
Newer Older
wang-jinfeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash

# # # # # # # # # # # # # # # # # # # # # #
# @author  :wangjf
# @revision:2019-10-30 14:08:18
# # # # # # # # # # # # # # # # # # # # # #

source ../dmp_env.sh

region=$1
today=${ScheduleTime:-$2}

datetime=$(date +"%Y-%m-%d %H" -d "1 hour ago $today")
date=${datetime:0:10}
hour=${datetime:11:2}
java -cp ../${JAR} mobvista.dmp.datasource.realtime.service.RealTimeServiceNewMain ${date} ${hour} ${region}

if [[ $? -ne 0 ]]; then
    exit 255
fi