我使用Binary Distribution安装PredictionIO 0.12.1,我已经成功启动了pio。之后我使用了Quick Start - 电子商务推荐引擎模板。在构建时,我收到错误“[ERROR] [引擎$]没有找到引擎。你的构建可能已经失败。正在中止。”
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$
答案 0 :(得分:1)
您可以在部署时指定引擎实例ID,您可以在培训完成后通过greping EngineInstaceId获取该引擎实例ID。
答案 1 :(得分:0)
在使用二进制发行版之后,我已经下载了源代码并构建了具有所需依赖性的二进制文件。
这是一个许可问题。我正在使用Ubuntu 18.04,我需要提供特定模板文件夹的读取权限(在本例中为MyECommerceRecommendation)
经过许可,它运作良好。
谢谢,