我在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"}
如何在不弹出此错误消息的情况下继续对服务器进行查询?
我相信您使用的客户端/魔术师存在一个已知问题,并且我认为它在四年左右的时间内没有更新。我模糊地记得您可以通过%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
谢谢@Kelvin Lawrence。很有帮助。
我的荣幸。快乐绘图:-)
我用jupyter,gremlin python创建了一个新鲜的环境,现在我正在得到
RuntimeError: Cannot run the event loop while another loop is running
龙卷风正在传播的环境。gremlinpython
过去几周有什么变化吗?我会使用%%gremlin
魔术,但我想在笔记本中进行可视化我正在使用Gremlin Python 3.4.3和Tornado 4.5.1,在笔记本中没有任何问题。您安装了什么版本?
我正在使用python3.6。但我尝试使用python3.5,因为conda中不提供Python 3.4。我安装了版本4.5.1龙卷风,还尝试了gremlinpython的3.4.5和3.4.4。通过此安装,我得到了
HTTP 599: Timeout while connecting
。