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

查看:698
本文介绍了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)

这是我的conf文件: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天全站免登陆