|
@@ -28,7 +28,9 @@ main() {
|
|
while [ "$train_date" != "$train_end_time" ]; do
|
|
while [ "$train_date" != "$train_end_time" ]; do
|
|
echo "==================== 开始训练 $train_date 模型 ===================="
|
|
echo "==================== 开始训练 $train_date 模型 ===================="
|
|
|
|
|
|
- if [ "$train_date" == "$begin_date" ]; then
|
|
|
|
|
|
+ if ["$train_date" == "20240801"]; then
|
|
|
|
+ echo -e "\t\t 无效的数据分区: $train_date, 跳过"
|
|
|
|
+ elif [ "$train_date" == "$begin_date" ]; then
|
|
$HADOOP fs -text ${hdfs_path}/${train_date}/* | ${FM_TRAIN} -m ${MODEL_PATH}/${model_name}_${train_date}.txt -dim ${train_dim} -core 8
|
|
$HADOOP fs -text ${hdfs_path}/${train_date}/* | ${FM_TRAIN} -m ${MODEL_PATH}/${model_name}_${train_date}.txt -dim ${train_dim} -core 8
|
|
else
|
|
else
|
|
yesterday=$(date -d "$train_date -1 day" +%Y%m%d)
|
|
yesterday=$(date -d "$train_date -1 day" +%Y%m%d)
|