|
@@ -29,27 +29,6 @@ bucketDataPath=/dw/recommend/model/43_recsys_train_data_new_table/
|
|
|
|
|
|
HADOOP=/opt/apps/HADOOP-COMMON/hadoop-common-current/bin/hadoop
|
|
HADOOP=/opt/apps/HADOOP-COMMON/hadoop-common-current/bin/hadoop
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
echo "$(date +%Y-%m-%d_%H-%M-%S)----------step1------------开始根据${table}生产原始数据"
|
|
echo "$(date +%Y-%m-%d_%H-%M-%S)----------step1------------开始根据${table}生产原始数据"
|
|
|
|
|
|
@@ -58,7 +37,7 @@ echo "$(date +%Y-%m-%d_%H-%M-%S)----------step1------------开始根据${table}
|
|
--master yarn --driver-memory 1G --executor-memory 2G --executor-cores 1 --num-executors 16 \
|
|
--master yarn --driver-memory 1G --executor-memory 2G --executor-cores 1 --num-executors 16 \
|
|
./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
tablePart:64 repartition:32 \
|
|
tablePart:64 repartition:32 \
|
|
-beginStr:${begin_early_2_Str}00 endStr:${end_early_2_Str}09 \
|
|
+beginStr:2024072700 endStr:2024072723 \
|
|
savePath:${originDataPath} \
|
|
savePath:${originDataPath} \
|
|
table:${table} &
|
|
table:${table} &
|
|
|
|
|
|
@@ -67,7 +46,7 @@ table:${table} &
|
|
--master yarn --driver-memory 1G --executor-memory 2G --executor-cores 1 --num-executors 16 \
|
|
--master yarn --driver-memory 1G --executor-memory 2G --executor-cores 1 --num-executors 16 \
|
|
./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
tablePart:64 repartition:32 \
|
|
tablePart:64 repartition:32 \
|
|
-beginStr:${begin_early_2_Str}10 endStr:${end_early_2_Str}15 \
|
|
+beginStr:2024073000 endStr:2024073023 \
|
|
savePath:${originDataPath} \
|
|
savePath:${originDataPath} \
|
|
table:${table} &
|
|
table:${table} &
|
|
|
|
|
|
@@ -76,7 +55,7 @@ table:${table} &
|
|
--master yarn --driver-memory 1G --executor-memory 2G --executor-cores 1 --num-executors 16 \
|
|
--master yarn --driver-memory 1G --executor-memory 2G --executor-cores 1 --num-executors 16 \
|
|
./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
tablePart:64 repartition:32 \
|
|
tablePart:64 repartition:32 \
|
|
-beginStr:${begin_early_2_Str}16 endStr:${end_early_2_Str}23 \
|
|
+beginStr:2024073100 endStr:2024073123 \
|
|
savePath:${originDataPath} \
|
|
savePath:${originDataPath} \
|
|
table:${table} &
|
|
table:${table} &
|
|
|
|
|
|
@@ -87,23 +66,3 @@ if [ $? -ne 0 ]; then
|
|
else
|
|
else
|
|
echo "spark原始样本生产执行成功"
|
|
echo "spark原始样本生产执行成功"
|
|
fi
|
|
fi
|
|
-
|
|
|
|
-
|
|
|
|
-echo "$(date +%Y-%m-%d_%H-%M-%S)----------step2------------根据特征分桶生产重打分特征数据"
|
|
|
|
-/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.makedata_recsys_43_bucketData_20240709 \
|
|
|
|
---master yarn --driver-memory 2G --executor-memory 4G --executor-cores 1 --num-executors 16 \
|
|
|
|
-./target/spark-examples-1.0.0-SNAPSHOT-shaded.jar \
|
|
|
|
-readPath:${originDataPath} \
|
|
|
|
-savePath:${bucketDataPath} \
|
|
|
|
-beginStr:${begin_early_2_Str} endStr:${end_early_2_Str} repartition:500 \
|
|
|
|
-filterNames:XXXXXXXXX \
|
|
|
|
-fileName:20240609_bucket_314.txt \
|
|
|
|
-whatLabel:is_return whatApps:0,4,21,17
|
|
|
|
-if [ $? -ne 0 ]; then
|
|
|
|
- echo "Spark特征分桶处理任务执行失败"
|
|
|
|
- exit 1
|
|
|
|
-else
|
|
|
|
- echo "spark特征分桶处理执行成功"
|
|
|
|
-fi
|
|
|
|
-echo "$(date +%Y-%m-%d_%H-%M-%S)----------step5------------spark特征分桶处理执行成功:${begin_early_2_Str}"
|
|
|