predictionio - 为 PredictioIO Universal Recommender 导入示例事件时出错

标签 predictionio

我已经安装了带有 ElasticSearch 和 HBase 的 PredictionIO 0.9.6,然后按照说明使用此处的 UR 模板:https://templates.prediction.io/PredictionIO/template-scala-parallel-universal-recommendation

当我尝试通过运行导入示例事件时 python examples/import_handmade.py --access_key **我的访问 key ** 我收到此错误:

401 body: {"message":"Invalid accessKey."}

访问 key 来自pio app list命令...

我还尝试按照针对其他问题的建议将 UR 模板升级到版本 0.3.0:删除包含模板的目录并使用 git https://github.com/actionml/template-scala-parallel-universal-recommendation 重新安装|但是当我运行 ./examples/integration-test 时,我得到了同样的错误。

有人遇到过这个问题吗?

最佳答案

我在运行时遇到了同样的问题:

./examples/integration-test

python examples/import_handmade.py --access_key **my-access-key**

在读取~/ur 目录下的pio.log 时,我发现access key 没有保存到DB (POSTGRES) 中。

pio.log 显示 SELECT 查询失败。 因此,我手动将访问 key 和应用程序 ID 插入到数据库中。

之后集成测试成功运行。

关于predictionio - 为 PredictioIO Universal Recommender 导入示例事件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36913924/

相关文章:

predictionio - 从 Prediction.io 批量导出分数

linux - 错误 : Invalid or corrupt jarfile occured while trying to build recommendation engine of PredictionIO in Linux machine

scala - Spark 和预测 IO : NoClassDefFoundError Despite Dependency Existing

machine-learning - 推荐系统 : Is it content-based filtering?

amazon-web-services - 在生产中使用 PredictionIO

apache - 当我尝试运行 'Status'时,字段 'pio status'重复

web-services - 如何将预测引擎作为服务运行

machine-learning - 根据文本字段预测文本字段