|
@@ -27,7 +27,6 @@ public class I2IDSSMPredict {
|
|
|
private static HDFSService hdfsService = new HDFSService();
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- System.loadLibrary("paddle_inference");
|
|
|
CMDService cmd = new CMDService();
|
|
|
Map<String, String> argMap = cmd.parse(args);
|
|
|
String file = argMap.get("path");
|
|
@@ -43,6 +42,7 @@ public class I2IDSSMPredict {
|
|
|
|
|
|
// 定义处理数据的函数
|
|
|
JavaRDD<String> processedRdd = rdd.mapPartitions(lines -> {
|
|
|
+ System.loadLibrary("paddle_inference");
|
|
|
String bucketName = "art-recommend";
|
|
|
String objectName = "dyp/dssm.tar.gz";
|
|
|
OSSService ossService = new OSSService();
|