user_info.sh 644 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#! /bin/bash

# # # # # # # # # # # # # # # # # # # # # #
# @author : wangjf
# # # # # # # # # # # # # # # # # # # # # #

source ../../dmp_env.sh

dt=$(date +"%Y%m%d" -d "-1 day $ScheduleTime")
10
date_path=$(date +"%Y/%m/%d" -d "-1 day $ScheduleTime")
11

WangJinfeng committed
12
check_await ${ODS_DMP_USER_INFO_DAILY}/${dt}/_SUCCESS
13 14 15 16 17 18 19 20 21 22

OUTPUT_PATH="${OUTPUT_REYUN_USER_INFO_PATH}/${date_path}"

spark-submit --class mobvista.dmp.output.reyun.UserInfo \
  --master yarn --deploy-mode cluster --executor-memory 6g --driver-memory 4g --executor-cores 3 --num-executors 100 \
  ../../${JAR} -date ${dt} -output ${OUTPUT_PATH} -coalesce 1000

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