【问题标题】:h2o steam with python "accessing /pypredict."使用 python“访问/pypredict”的 h2o steam。
【发布时间】:2017-10-17 03:06:35
【问题描述】:

我已经尝试了 steam/prediction-service-builder/examples/spam-detection-python 下的示例,但遇到了一些错误 蟒蛇:

This is an example of NOT SPAM
"Sorry din lock my keypad"

http://localhost:55001/pypredict?Sorry%20%20din%20lock%20my%20keypad
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
  <title>Error 406 1</title>
  </head>

  <body><h2>HTTP ERROR 406</h2>
    <p>Problem accessing /pypredict. Reason:
    <pre>    1</pre></p><hr /><i><small>Powered by Jetty://</small></i> 
    <br/>

  </body>
</html>

【问题讨论】:

  • “访问 /pypredict 的问题”中的 /pypredict 是什么。还是?
  • 请发布完整的日志。您只能看到 HTML 结果中的第一行,在这种情况下,它的信息量不是很大。您的问题可能是由于缺少 Python 库引起的,但为了确保是这种情况,我们需要查看完整的日志。

标签: h2o


【解决方案1】:

我刚刚在本地运行了本教程,一切正常。

我使用sh example-python.sh 构建了示例Web 服务,而不是使用http://localhost:55000 的Web UI 构建服务。

【讨论】:

  • 嗨,我从你的回答中删除了问题。这种疑问必须使用问题下方的cmets来解决。您必须等待获得 50 点声望才能对任何问题发表评论。现在您已经写了一些答案,您可能可以对这个问题发表评论。
  • 但通常我应该如何测试我的python代码部分?我的 python 代码在本地 I/0 上运行良好,但将其作为预处理 python 代码包装在 .war 文件中,它显示 python 调用未正确读取测试 txt 的错误。谢谢
猜你喜欢
  • 2018-07-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多