PredictionIO 0.12.1 - 未找到引擎。您的构建可能失败了。中止

PredictionIO 0.12.1 - No engine found. Your build might have failed. Aborting

我已经使用Binary Distribution安装了PredictionIO 0.12.1,我已经成功启动了pio。之后我使用了 Quick Start - E-Commerce Recommendation Engine Template。在构建时,我收到错误消息“[ERROR] [Engine$] 找不到引擎。您的构建可能失败了。正在中止。”

fh@fh:~/fh_engines/MyECommerceRecommendation$ pio build --verbose
[INFO] [Engine$] Using command '/home/fh/PredictionIO-0.12.1/sbt/sbt' at /home/fh/fh_engines/MyECommerceRecommendation to build.
[INFO] [Engine$] If the path above is incorrect, this process will fail.
[INFO] [Engine$] Uber JAR disabled. Making sure lib/pio-assembly-0.12.1.jar is absent.
[INFO] [Engine$] Going to run: /home/fh/PredictionIO-0.12.1/sbt/sbt  package assemblyPackageDependency in /home/fh/fh_engines/MyECommerceRecommendation
[INFO] [Engine$] [info] Loading project definition from /home/fh/.sbt/0.13/staging/a8733a2463247b8ef5ff/myecommercerecommendation/project
[INFO] [Engine$] [info] Set current project to template-scala-parallel-ecommercerecommendation (in build file:/home/fh/fh_engines/MyECommerceRecommendation/)
[INFO] [Engine$] [success] Total time: 1 s, completed 21 May, 2018 10:42:05 AM
[INFO] [Engine$] [info] Including from cache: scala-library-2.11.8.jar
[INFO] [Engine$] [info] Checking every *.class/*.jar file's SHA-1.
[INFO] [Engine$] [info] Merging files...
[INFO] [Engine$] [warn] Merging 'META-INF/MANIFEST.MF' with strategy 'discard'
[INFO] [Engine$] [warn] Strategy 'discard' was applied to a file
[INFO] [Engine$] [info] Assembly up to date: /home/fh/.sbt/0.13/staging/a8733a2463247b8ef5ff/myecommercerecommendation/target/scala-2.11/template-scala-parallel-ecommercerecommendation-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [Engine$] [success] Total time: 1 s, completed 21 May, 2018 10:42:06 AM
[INFO] [Engine$] Compilation finished successfully.
[INFO] [Engine$] Looking for an engine...
[ERROR] [Engine$] No engine found. Your build might have failed. Aborting.
fh@fh:~/fh_engines/MyECommerceRecommendation$ 

在尝试二进制分发之后,我下载了源代码并构建了具有所需依赖项的二进制文件。

这是一个权限问题。我正在使用 Ubuntu 18.04,我需要提供对特定模板文件夹的读取权限(在本例中为 MyECommerceRecommendation)

授权后,一切正常。

谢谢,

您可以在部署时指定引擎实例ID,您可以在训练完成后通过greping EngineInstaceId 获取。