| 12345678910111213141516171819202122232425262728293031323334353637 |
- #!/bin/bash
- year=""
- version=""
- if(($#==2))
- then
- year=$1
- version=$2
- else
- exit -1
- fi
- set -x
- export SPARK_HOME=/opt/apps/SPARK2/spark-2.4.8-hadoop3.2-1.0.8
- export PATH=$SPARK_HOME/bin:$PATH
- export HADOOP_CONF_DIR=/etc/taihao-apps/hadoop-conf
- export JAVA_HOME=/usr/lib/jvm/java-1.8.0
- # params
- input_path=/dw/recommend/model/user_profile/gender/result/
- suffix="y,8,4,0,e,a,c,k,o,w,g,s,u,q,i,m"
- #suffix="y"
- project=loghubods
- output_table=alg_recsys_user_behavior_gender_tmp
- # to hive
- /opt/apps/SPARK2/spark-2.4.8-hadoop3.2-1.0.8/bin/spark-class2 org.apache.spark.deploy.SparkSubmit \
- --class com.aliyun.odps.spark.examples.makedata_recsys_r_rate.parse_gender_to_hive \
- --master yarn --driver-memory 4G --executor-memory 6G --executor-cores 1 --num-executors 8 \
- --conf spark.yarn.executor.memoryoverhead=2048 \
- /mnt/disk1/jch/recommend-emr-dataprocess/target/spark-examples-1.0.0-SNAPSHOT-jar-with-dependencies.jar \
- inputPath:${input_path} \
- year:${year} \
- suffix:${suffix} \
- project:${project} \
- outputTable:${output_table} \
- version:${version} \
|