【发布时间】:2016-04-28 11:56:17
【问题描述】:
我已经安装了带有 ElasticSearch 和 HBase 的 PredictionIO 0.9.6,然后按照说明在此处使用 UR 模板:https://templates.prediction.io/PredictionIO/template-scala-parallel-universal-recommendation
当我尝试通过运行导入示例事件时
python examples/import_handmade.py --access_key **my-access-key**
我收到此错误:
401 正文:{"message":"Invalid accessKey."}
访问密钥来自pio app list 命令...
我还尝试按照其他问题的建议将 UR 模板升级到 0.3.0 版:删除了带有模板的目录并使用 git https://github.com/actionml/template-scala-parallel-universal-recommendation 重新安装,但是当我运行 ./examples/integration-test 时,我得到了同样的错误。
有人遇到这个问题吗?
【问题讨论】:
-
你没有在访问密钥周围加上引号或 符号是吗?
-
没有@alex9311,我在 --access_key 参数之后传递它。
-
通过 curl 怎么样? curl -i -X GET "localhost:7070/events.json?accessKey=$ACCESS_KEY"
-
正在检索数据,是导入不起作用...
-
我在运行
./examples/integration-test时遇到了同样的错误
标签: predictionio