如何在没有指定engine-instance-id的情况下部署在其他服务器上分别训练有模型的PredictionIO引擎

时间:2019-01-05 07:38:39

标签: predictionio

在对群集A进行训练之后,我得到了如下日志:

[INFO] [Engine$] EngineWorkflow.train completed

[INFO] [Engine] engineInstanceId=8e334d55-1482-4d79-9b55-e02b91aa0caa

[INFO] [CoreWorkflow$] Inserting persistent model

[INFO] [CoreWorkflow$] Updating engine instance

[INFO] [CoreWorkflow$] Training completed successfully.

[INFO] [AbstractConnector] Stopped Spark@6ec63f8{HTTP/1.1,[http/1.1]}{0.0.0.0:4041}

然后,当我在服务器B上部署时,使用pio deploy失败:

[WARN] [Template$] /home/dev/tmp/deploy/template.json does not exist. Template metadata will not be available. (This is safe to ignore if you are not working on a template.)
Sat Jan 05 15:21:17 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
[ERROR] [Engine$] No valid engine instance found for engine com.example.iti.SimilarRankEngine 099400e4829c88639502c061b9d62ba37405be03.
Try running 'train' before 'deploy'. Aborting.

当我使用从火车日志的尾部获取的engineInstanceId指定--engine-instance-id时,它运行良好。

现在,我必须从集群A的日志中手动复制engineInstanceId,并使用更新模型时获得的engineInstanceId重新部署。

当训练/部署都在同一服务器上运行时,不会出现此问题。

0 个答案:

没有答案