Commit 1298bb46 by wangjf

fix

parent fbd9a0dc
File added
type=command
retries=3
dependencies=app_start
command=sh -x app_end.sh
\ No newline at end of file
#!/usr/sh
DT=$(date +%Y%m%d -d "-1 day $ScheduleTime")
LAST_DT=$(date +%Y%m%d -d "-7 day $DT")
hive -hivevar dt=${DT} -hivevar last_dt=${LAST_DT} -f app_tag.sql
sqoop export --connect jdbc:mysql://dataplatform-app-tag.c5yzcdreb1xr.us-east-1.rds.amazonaws.com:3306/app_tag \
--username apptag_rw --password 7gyLEVtkER3u8c9 --table tag_list --columns "package_name,app_name,platform,category,url,install" \
--export-dir s3://mob-emr-test/dataplatform/DataWareHouse/dwh.db/package_list --input-fields-terminated-by '\001' --update-mode allowinsert --update-key package_name
......
type=command
retries=3
command=sh -x app_tag.sh
\ No newline at end of file
command=sh -x app_start.sh
\ No newline at end of file
#!/usr/sh
DT=$(date +%Y%m%d -d "-1 day $ScheduleTime")
LAST_DT=$(date +%Y%m%d -d "-7 day $DT")
hive -hivevar dt=${DT} -hivevar last_dt=${LAST_DT} -f app_start.sql
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment