我可以直接向 janusGraph 服务器发出 http 请求吗?

Can I make http requests directly to the janusGraph server?

正在查找如何通过 HTTP 查询 janusGraph 服务器的示例。我需要这个选项,因为我想通过 Gatling 测量 janusGraph 的速度。我没有找到有关如何设置可通过 HTTP 调用的服务器的文档。

您需要转到此路径:“janusgraph-hadoop2/conf/gremlin-server”并更改“”中的 gremlin-server.yaml”从 "channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer" 到“channelizer:org.apache.tinkerpop.gremlin.server.channel.HttpChannelizer”。之后你需要 运行 gremlin 服务器并且可以调用端点:"localhost:8182"