首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Prediction.io:无法部署引擎

Prediction.io:无法部署引擎
EN

Stack Overflow用户
提问于 2016-02-19 11:28:50
回答 1查看 772关注 0票数 1

我正试图在本地机器上设置一个Prediction.io 文本分类引擎。但是,在尝试pio build时,我得到以下消息:

代码语言:javascript
运行
复制
[ERROR] [Console$] No valid engine instance found for engine iMXSzwtuLBqTGDQVWFwhXLyX3MELx6Ox 2089ace31214efdc353ab45e911b7524222d7ab6.
Try running 'train' before 'deploy'. Aborting.

正如本教程中所指定的,我已经导入了示例数据。我可以在没有任何问题的情况下建造和训练发动机。知道为什么它找不到一个有效的引擎实例吗?

有关资料:

pio build

代码语言:javascript
运行
复制
[INFO] [Console$] Using existing engine manifest JSON at ~/prediction_io/text_classification/manifest.json
[INFO] [Console$] Using command '/usr/local/Cellar/predictionio/0.9.5/libexec/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.5.jar is absent.
[INFO] [Console$] Going to run: /usr/local/Cellar/predictionio/0.9.5/libexec/sbt/sbt  package assemblyPackageDependency
[INFO] [Console$] Build finished successfully.
[INFO] [Console$] Looking for an engine...
[INFO] [Console$] Found com-example_2.10-0.1-SNAPSHOT.jar
[INFO] [Console$] Found com.example-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [RegisterEngine$] Registering engine iMXSzwtuLBqTGDQVWFwhXLyX3MELx6Ox 2089ace31214efdc353ab45e911b7524222d7ab6
[INFO] [Console$] Your engine is ready for training.

pio train

代码语言:javascript
运行
复制
INFO] [Console$] Using existing engine manifest JSON at ~/prediction_io/text_classification/manifest.json
[INFO] [Runner$] Submission command: /usr/local/opt/apache-spark/bin/spark-submit --class io.prediction.workflow.CreateWorkflow --jars file:~/prediction_io/text_classification/target/scala-2.10/com-example_2.10-0.1-SNAPSHOT.jar,file:~/prediction_io/text_classification/target/scala-2.10/com.example-assembly-0.1-SNAPSHOT-deps.jar --files file:/usr/local/Cellar/predictionio/0.9.5/libexec/conf/log4j.properties --driver-class-path /usr/local/Cellar/predictionio/0.9.5/libexec/conf:/usr/local/opt/elasticsearch/config file:/usr/local/Cellar/predictionio/0.9.5/libexec/lib/pio-assembly-0.9.5.jar --engine-id iMXSzwtuLBqTGDQVWFwhXLyX3MELx6Ox --engine-version 2089ace31214efdc353ab45e911b7524222d7ab6 --engine-variant file:~/prediction_io/text_classification/engine.json --verbosity 0 --json-extractor Both --env PIO_ENV_LOADED=1,PIO_STORAGE_REPOSITORIES_METADATA_NAME=pio_meta,PIO_FS_BASEDIR=~/.pio_store,PIO_HOME=/usr/local/Cellar/predictionio/0.9.5/libexec,PIO_FS_ENGINESDIR=~/.pio_store/engines,PIO_STORAGE_SOURCES_PGSQL_URL=jdbc:postgresql://localhost/pio,PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=pio_event,PIO_STORAGE_SOURCES_PGSQL_PASSWORD=,PIO_STORAGE_SOURCES_PGSQL_TYPE=jdbc,PIO_FS_TMPDIR=~/.pio_store/tmp,PIO_STORAGE_SOURCES_PGSQL_USERNAME=pio,PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=pio_model,PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=PGSQL,PIO_CONF_DIR=/usr/local/Cellar/predictionio/0.9.5/libexec/conf
/usr/local/Cellar/predictionio/0.9.5/libexec/conf/pio-env.sh: line 55: PIO_STORAGE_SOURCES_PGSQL_PASSWORD: command not found

pio status

代码语言:javascript
运行
复制
[INFO] [Console$] Inspecting PredictionIO...
[INFO] [Console$] PredictionIO 0.9.5 is installed at /usr/local/Cellar/predictionio/0.9.5/libexec
[INFO] [Console$] Inspecting Apache Spark...
[INFO] [Console$] Apache Spark is installed at /usr/local/opt/apache-spark
[WARN] [Console$] Apache Spark version information cannot be found. If you are using a developmental tree, please make sure you are using a version of at least 1.3.0.
[INFO] [Console$] Inspecting storage backend connections...
[INFO] [Storage$] Verifying Meta Data Backend (Source: PGSQL)...
[INFO] [Storage$] Verifying Model Data Backend (Source: PGSQL)...
[INFO] [Storage$] Verifying Event Data Backend (Source: PGSQL)...
[INFO] [Storage$] Test writing to Event Store (App Id 0)...
[INFO] [Console$] (sleeping 5 seconds for all messages to show up...)
[INFO] [Console$] Your system is all ready to go.
EN

回答 1

Stack Overflow用户

发布于 2016-02-19 22:28:23

你的皮奥列车的最后一列是因为:

/usr/local/Cellar/predictionio/0.9.5/libexec/conf/pio-env.sh: line 55: PIO_STORAGE_SOURCES_PGSQL_PASSWORD: command not found

您是否为您的PostgreSQL设置了密码并将其放入pio-env.sh?如果这没有帮助的话,可以随意地粘贴你的pio-env.sh (当然,编辑出密码等等)。

如果您有进一步的问题,在此过程中,张贴到预测it的谷歌集团,在那里您的问题将得到更快的回答我们的社区。

汤姆

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35504217

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档