|
@@ -329,7 +329,7 @@ object makedata_recsys_61_originData_20241209 {
|
|
|
if (hdfsPath.nonEmpty && hdfsPath.startsWith("/dw/recommend/model/")) {
|
|
|
println("删除路径并开始数据写入:" + hdfsPath)
|
|
|
MyHdfsUtils.delete_hdfs_path(hdfsPath)
|
|
|
- odpsData.coalesce(repartition).saveAsTextFile(hdfsPath, classOf[GzipCodec])
|
|
|
+ odpsData.repartition(repartition).saveAsTextFile(hdfsPath, classOf[GzipCodec])
|
|
|
} else {
|
|
|
println("路径不合法,无法写入:" + hdfsPath)
|
|
|
}
|