创建DSE图时出现Gettng错误 - “主机没有及时响应”

时间:2016-08-19 16:34:49

标签: datastax-enterprise datastax-startup datastax-enterprise-graph

我们正在使用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.

我将[locahost]中的 Remote.yaml 文件设置更改为 主持人:[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

您能否告诉我这里缺少的配置?

1 个答案:

答案 0 :(得分:4)

我发现默认情况下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控制台能够连接并创建图表。