Gremlin 远程命令失败并出现超时错误:主机没有及时响应 [英] Gremlin remote command fails with timeout error: Host did not respond in a timely fashion

查看:27
本文介绍了Gremlin 远程命令失败并出现超时错误:主机没有及时响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 gremlin groovy shell 连接到远程 gremlin 服务器.连接成功.但是对于我尝试执行的任何远程命令,它都会出现超时错误.即使对于命令 :>1+1

I connected to a remote gremlin server via gremlin groovy shell. Connection succeeded. But for any remote command I try to execute it gives timeout error. Even for command :> 1+1

gremlin> :remote connect tinkerpop.server conf/senthil.yaml
==>Connected - 10.40.40.65/10.40.40.65:50080

gremlin> :> 1+1
Host did not respond in a timely fashion - check the server status and submit again.
Display stack trace? [yN]
org.apache.tinkerpop.gremlin.groovy.plugin.RemoteException: Host did not respond in a timely fashion - check the server status and submit again.
at org.apache.tinkerpop.gremlin.console.groovy.plugin.DriverRemoteAcceptor.submit(DriverRemoteAcceptor.java:120)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.commands.SubmitCommand.execute(SubmitCommand.groovy:41)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.codehaus.groovy.tools.shell.Shell.execute(Shell.groovy:101)
at org.codehaus.groovy.tools.shell.Groovysh.super$2$execute(Groovysh.groovy)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)

这是我的配置文件:remote.yaml

This is my conf file: remote.yaml

hosts: [10.40.40.65]
port: 50080
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true }}

我正在使用 dynamodb + Titan.

I'm using dynamodb + titan.

推荐答案

您可能没有真正成功的连接.控制台(和底层驱动程序)很乐观,因为它在发送请求之前确实不会导致连接失败,因为它预计服务器可能稍后"上线.我会回去调查服务器是否正在运行,如果你有正确的 IP,如果 host 属性没有设置为localhost",如果你是远程连接,如果端口是打开的,您使用的是兼容版本的 TinkerPop 等.

You might not have a truly successful connection. The console (and underlying driver) is optimistic in that it really doesn't fail a connection until a request is sent as it expects the server may come online "later". I would go back to investigating if the server is running, if you have the right IP, if the host property is not set to something like "localhost" if you are connecting remotely, if the port is open, that you are using a compatible version of TinkerPop, etc.

这篇关于Gremlin 远程命令失败并出现超时错误:主机没有及时响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆