创建 DSE 图表时出错 -"Host did not respond in a timely fashion"

Gettng error while creating DSE Graph -"Host did not respond in a timely fashion"

我们使用的是 DataStax Enterprise 5.0.1 版,在从 Gremlin 控制台创建图表时遇到问题。

以下是我收到的错误的详细信息:

adminuser@dc0vm1:~$ dse gremlin-console
     \,,,/
     (o o)
-----oOOo-(3)-oOOo-----
plugin activated: tinkerpop.tinkergraph
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Configured 13.82.30.252/13.82.30.252:8182
gremlin> :> 1+1
Host did not respond in a timely fashion - check the server status and submit again.
gremlin> :> system.graph('food').create()
Host did not respond in a timely fashion - check the server status and submit again.

我将 Remote.yaml 文件设置从 [locahost] 更改为 主机:[13.82.30.252].

我运行 nodetool 命令 检查服务器是否 运行 正确:

adminuser@dc0vm1:~$ nodetool status

Datacenter: dc0

Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving

--  Address       Load       Tokens       Owns    Host ID                               Rack

UN  13.82.25.134  168.92 KB  64           ?       d7a98eed-9b15-42ee-bc5c-f406e98fd6fc  FD2

UN  13.82.25.152  189.17 KB  64           ?       7ffa11ea-8607-4bdb-903b-2ee3baeacae8  FD0

UN  13.82.30.252  150.6 KB   64           ?       a57f6cd8-5466-480e-b919-329c36fbfd28  FD1

cassandra.yaml 有以下与主机相关的条目:

 broadcast_rpc_address: 13.82.30.252

 rpc_address: 0.0.0.0

你能告诉我这里缺少什么配置吗?

我发现默认情况下未启用 DSE Graph 服务,因此您需要编辑文件 "dse" 以启用它 -

sudo vim /etc/default/dse

确保以下参数设置为 1 –

# Enable the DSE Graph service on this node
GRAPH_ENABLED=1

重新启动 DSE 服务 -

sudo service dse stop
sudo service dse start

现在 Gremlin 控制台能够连接并创建图形。