我已经安装了带有 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/