Commit 17829832 authored by 王志伟's avatar 王志伟

fix sh

parent 905c4e42
...@@ -3,11 +3,11 @@ if [[ $# -ne 2 ]];then ...@@ -3,11 +3,11 @@ if [[ $# -ne 2 ]];then
exit exit
fi fi
startdate=`date -d "(" +%Y%m%d` startdate=`date -d "$1" +%Y-%m-%d`
enddate=`date -d "[" +%Y%m%d` enddate=`date -d "$2" +%Y-%m-%d`
while [[ $startdate < "nddate ]] while [[ $startdate < $enddate]]
do do
/opt/spark/bin/spark-submit --master spark://10.31.242.83:7077 --total-executor-cores 20 --executor-memory 3g --executor-cores 2 --driver-memory 8g --conf spark.default.parallelism=200 --conf spark.storage.memoryFraction=0.5 --conf spark.shuffle.memoryFraction=0.3 --class com.gmei.jerry.strategy_clk_imp_oldUser /srv/apps/ffm-baseline/eda/feededa/target/scala-2.11/feededa-assembly-0.1.jar --env prod --date $startdate >>ctr1.log /opt/spark/bin/spark-submit --master spark://10.31.242.83:7077 --total-executor-cores 20 --executor-memory 3g --executor-cores 2 --driver-memory 8g --conf spark.default.parallelism=200 --conf spark.storage.memoryFraction=0.5 --conf spark.shuffle.memoryFraction=0.3 --class com.gmei.jerry.strategy_clk_imp_oldUser /srv/apps/ffm-baseline/eda/feededa/target/scala-2.11/feededa-assembly-0.1.jar --env prod --date $startdate >>ctr1.log
startdate=`date -d "+1 day $startdate" +%Y%m%d` startdate=`date -d "+1 day $startdate" +%Y-%m-%d`
done done
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