温馨提示:本文翻译自stackoverflow.com,查看原文请点击:gremlin - GremlinServerError: 499
amazon-neptune gremlin tinkerpop gremlinpython

gremlin - GremlinServerError:499

发布于 2020-04-08 11:35:33

我在AWS上运行Neptune Server,并在jupyter笔记本中对db ipython单元魔术进行了gremlin查询。我有运行多个遍历和我得到的是来自哪里的错误aiogoblin在他们的resultset.py文件:GremlinServerError: 499: {"requestId":"5bb1e6ea-49ec-4a1d-9364-2b1bf717df9c","code":"InvalidParameterException","detailedMessage":"The [eval] message contains 66 bindings which is more than is allowed by the server 64 configuration"}

如何在不弹出此错误消息的情况下继续对服务器进行查询?

查看更多

提问者
Justin Gerard
被浏览
59
Kelvin Lawrence 2020-02-01 23:33

我相信您使用的客户端/魔术师存在一个已知问题,并且我认为它在四年左右的时间内没有更新。我模糊地记得您可以通过%reset在单元中执行类似的操作解决此问题,但我真的认为您最好使用定期更新和支持的其他客户端。

您可以改用Apache TinkerPop Gremlin Python客户端(pip install gremlinpython),也可以尝试提供%%gremlin单元魔术的新Amazon Neptune Workbench

如果您在Jupyter笔记本中使用Gremlin Python客户端,您仍然可以以几乎相同的方式发出查询,您只需要在发出基于Python的查询之前在单元中建立与服务器的连接即可。这里[1]有一篇有趣的博客文章,您可以用来在其中创建包含导入和设置步骤的单元的独立Python示例在[2]和此处[3]中找到。在示例中,您将替换localhost为Neptune终结点的DNS名称。

如果决定尝试使用新的Neptune工作台,则可以从AWS Neptune控制台网页创建一个。

[1] https://aws.amazon.com/blogs/database/let-me-graph-that-for-you-part-1-air-routes/
[2] https://github.com/krlawrence/ graph / blob / master / sample-code / basic-client.py
[3] https://github.com/krlawrence/graph/blob/master/sample-code/glv-client.py