remote.yamlファイルでのGremlin Servery用のGremlin Consoleの構成
Gremlin Serverに接続するためのGremlin Consoleの構成方法。
Gremlin Consoleを使用して、DSE Graphで実行されているGremlin Serverに接続することができます。Apache TinkerPop YAMLファイルであるremote.yamlは、Gremlin Server情報で構成されます。Gremlin Server自体の設定は、dse.yamlファイルで設定されます。
hosts:[localhost]
port: 8182
serializer:{ className:org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0,
config:{ ioRegistries:[org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistry] }}
connectionPool: {
maxContentLength: 65536000
}
Gremlin Serverを実行するDataStax Enterpriseノードを識別するホストとポートを指定します。デフォルトでは、ホストはローカル・ノード、ポートは8182です。ポート値は、dse.yamlファイルのgremlin_serverに指定されたポート値と一致しなければなりません。serializer
値は、Gremlin ConsoleとGremlin Serverの間での情報のやり取りに使用されるシリアライザーのクラスおよび構成を指定します。connectionPool
設定は、Gremlin ConsoleとGremlin Serverの間でやり取りされるコンテンツ・ブロックの最大長を指定します。
Gremlin ConsoleとGremlin Server間の相互認証の安全性に配慮するために、remote.yamlファイルにオプションを追加する必要があります。
dse.yamlファイルの場所は、インストールのタイプによって異なります。
Installer-Services | /etc/dse/dse.yaml |
パッケージ・インストール | /etc/dse/dse.yaml |
Installer-No Services | install_location/resources/dse/conf/dse.yaml |
tarボール・インストール | install_location/resources/dse/conf/dse.yaml |
remote.yamlファイルの場所は、インストールのタイプによって異なります。
パッケージ・インストール | /etc/dse/graph/gremlin-console/conf/remote.yaml |
tarボール・インストール | install_location/resources/graph/gremlin-console/conf/remote.yaml |