2016-04-25 21 views
3

gremlin groovyシェルを使用してリモートgremlinサーバーに接続しました。接続は成功しました。しかし、私はそれを実行しようとするリモートコマンドは、タイムアウトエラーを与える。 remote.yamlGremlinリモートコマンドがタイムアウトエラーで失敗しました:ホストがタイムリーに応答しませんでした

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

私はDynamoDBの+チタンを使用しています。でも、コマンド:> 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ファイルです。

答えて

4

正常に接続されていない可能性があります。コンソール(と基礎をなすドライバ)は、サーバーがオンラインで「後で」来ると予想されるので、要求が送信されるまで実際に接続に失敗しないという点で楽観的です。私はあなたが適切なIPを持っているかどうかを調査することに戻ります。hostプロパティがリモートで接続している場合は "localhost"のように設定されていない場合、ポートが開いている場合は互換性がありますバージョンのTinkerPopなど。

+1

Stephenの応答に加えて、 'host'と' port'の値がGremlin Console 'remote.yaml'とGremlin Server' gremlin-server.yaml'で一致することを確認してください。 'remote.yaml'でデフォルト値から変更したようです。 –

関連する問題