Commit 7ee6bafa authored by 郭羽's avatar 郭羽

美购精排模型

parent ee0e8163
......@@ -7,14 +7,14 @@ function mergeGetFile(){
exit 1
fi
rm -f $dataPath/$1.csv
logging "rm -f $dataPath/$1.csv"
# logging "rm -f $dataPath/$1.csv"
/opt/hadoop/bin/hdfs dfs -getmerge $1 $dataPath/$1.csv
logging "/opt/hadoop/bin/hdfs dfs -getmerge $1 $dataPath/$1.csv success"
# logging "/opt/hadoop/bin/hdfs dfs -getmerge $1 $dataPath/$1.csv success"
head -1 $1.csv > $1.csv.head
cat $1.csv|grep -v `cat $1.csv.head` >> $1.csv.head
mv $1.csv.head $1.csv
/opt/hadoop/bin/hdfs dfs -rmr /$1
logging "/opt/hadoop/bin/hdfs dfs -rmr /$1 success"
# logging "/opt/hadoop/bin/hdfs dfs -rmr /$1 success"
}
mergeGetFile ${content_type}_feature_v1_train
......
service_modelPath = /srv/apps/tensorServing_models/service
service_modelPath=/srv/apps/tensorServing_models/service
cd /srv/apps/tensorServing_models
#文件打包
tar -czvf model_service.tar.gz $service_modelPath
......
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