在PIO中构建MySimilarProduct引擎

时间:2018-02-05 12:39:58

标签: predictionio

当我正在使用cmd构建引擎时: pio build --verbose                                                                              我正在收到错误

Using existing engine manifest JSON at /MySimilarProduct/MyProduct/manifest.json
[INFO] [Console$] Using command '/PredictionIO-0.10.0-incubating/sbt/sbt' at the current working directory to build.
[INFO] [Console$] If the path above is incorrect, this process will fail.
[INFO] [Console$] Uber JAR disabled. Making sure lib/pio-assembly-0.10.0-incubating.jar is absent.
[INFO] [Console$] Going to run: /PredictionIO-0.10.0-incubating/sbt/sbt  package assemblyPackageDependency
[INFO] [Console$] [info] Loading project definition from /MySimilarProduct/MyProduct/project
[INFO] [Console$] [info] Set current project to template-scala-parallel-similarproduct (in build file:/MySimilarProduct/MyProduct/)
[INFO] [Console$] [success] Total time: 1 s, completed Feb 5, 2018 11:35:46 AM
[INFO] [Console$] [info] Including from cache: scala-library-2.11.8.jar
[INFO] [Console$] [info] Checking every *.class/*.jar file's SHA-1.
[INFO] [Console$] [info] Merging files...
[INFO] [Console$] [warn] Merging 'META-INF/MANIFEST.MF' with strategy 'discard'
[INFO] [Console$] [warn] Strategy 'discard' was applied to a file
[INFO] [Console$] [info] Assembly up to date: /MySimilarProduct/MyProduct/target/scala-2.11/template-scala-parallel-similarproduct-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [Console$] [success] Total time: 1 s, completed Feb 5, 2018 11:35:47 AM
[INFO] [Console$] Build finished successfully.
[INFO] [Console$] Looking for an engine...
[ERROR] [Console$] No engine found. Your build might have failed. Aborting.

我试过这个链接   No engine found. Your build might have failed. Aborting. [predictionio] ,但我的默认scala版本是2.11.8,而build.sbt是

name := "template-scala-parallel-similarproduct"

parallelExecution in Test := false
test in assembly := {}

scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
  "org.apache.predictionio" %% "apache-predictionio-core" % "0.12.0-incubating" % "provided",
  "org.apache.spark"        %% "spark-mllib"              % "2.1.1" % "provided",
  "org.scalatest"           %% "scalatest"                % "3.0.4" % "test")

任何帮助将不胜感激。提前谢谢你

1 个答案:

答案 0 :(得分:0)

您是否设置了$PIO_HOME

在运行pio build之前,您应该切换到引擎的目录(engine.json存在的位置)。

或者您可以使用pio build -v engine.json