【问题标题】:Error occured while building recommendation Engine using pio build --verbose in predictionio在 predictionio 中使用 pio build --verbose 构建推荐引擎时发生错误
【发布时间】:2016-07-27 07:15:26
【问题描述】:

我正在尝试将 Predicitionio 与我的应用程序集成。我按照Quick start 中的步骤操作 我被困在第 5 步,将引擎部署为服务。我无法使用pio build --verbose 构建推荐。当我执行pio build --verbose 时打印了以下日志。

Warning: pio-env.sh was not found in /home/PredictionIO/conf. Using system environment variables instead.

=:/home/PredictionIO/PredictionIO-0.9.6/conf is probably an Apache Spark development tree. Please make sure you are using at least 1.3.0.
[INFO] [Console$] Using existing engine manifest JSON at /home/PredictionIO/PredictionIO-0.9.6/bin/MyRecommendation/manifest.json
[INFO] [Console$] Using command '/home/PredictionIO/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.9.6.jar is absent.
[INFO] [Console$] Going to run: /home/PredictionIO/sbt/sbt  package assemblyPackageDependency
[DEBUG] [UpgradeCheckRunner] java.net.UnknownHostException: {e.getMessage}
[INFO] [Console$] [info] Loading project definition from /home/PredictionIO/PredictionIO-0.9.6/bin/MyRecommendation/project
[INFO] [Console$] [info] Set current project to template-scala-parallel-recommendation (in build file:/home/PredictionIO/PredictionIO-0.9.6/bin/MyRecommendation/)
[INFO] [Console$] [warn] No main class detected
[INFO] [Console$] [success] Total time: 1 s, completed Jul 27, 2016 12:20:53 PM
[INFO] [Console$] [warn] No main class detected
[INFO] [Console$] [info] Including from cache: scala-library.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: /home/PredictionIO/PredictionIO-0.9.6/bin/MyRecommendation/target/scala-2.10/template-scala-parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [Console$] [success] Total time: 1 s, completed Jul 27, 2016 12:20:54 PM
[INFO] [Console$] Build finished successfully.
[INFO] [Console$] Looking for an engine...
[INFO] [Console$] Found template-scala-parallel-recommendation_2.10-0.1-SNAPSHOT.jar
[INFO] [Console$] Found template-scala-parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar
[WARN] [Storage$] There is no properly configured data source.
[WARN] [Storage$] There is no properly configured repository.
[ERROR] [Storage$] Required repository (METADATA) configuration is missing.
[ERROR] [Storage$] There were 1 configuration errors. Exiting.

请帮我解决这个问题。

【问题讨论】:

  • 是否填充了事件服务器?检查它: curl -i -X GET "localhost:7070/events.json?accessKey=<app key>" 如果已填充,请粘贴一些数据。
  • 是的,它开始了。 [{"eventId":"30b112a8f3f54bbaae0be9ec507899e3","event":"$set","entityType":"user","entityId":"Jarvis","properties":{},"eventTime":"2014-08 -31T04:56:00.000-07:53","creationTime":"2016-07-26T06:48:08.678Z"}
  • event 应该是 -> "event" : "rate" 或 "event" : "buy" 你正在使用的模板。
  • 好的。我根据您的要求添加新数据集

标签: python statistics prediction predictionio


【解决方案1】:

原因是“pio”未设置为环境变量。所以我按如下方式执行构建引擎。

/home/PredictionIO/PredictionIO-0.9.6/bin/pio build --verbose

然后它对我有用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-05-13
    • 1970-01-01
    • 1970-01-01
    • 2010-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多