前提:
nebula-graph
版本使用的是 3.3.0
nebula-graph-studio
版本 3.5.0
刚开始使用 Docker
镜像部署的,后来发现,直接使用 tar
包安装也挺简单的(我部署的单机版)。
使用下面的方式将 nebula-graph
启动之后,发现有警告信息,提示 ADD HOSTS
。当时候也没当回事
[root@clickhouse nebula]#
[root@clickhouse nebula]# ./nebula-graph-3.3.0/scripts/nebula.service status all
[INFO] nebula-metad(c9f84b1): Running as 1917, Listening on 9559
[INFO] nebula-graphd(c9f84b1): Running as 1932, Listening on 9669
[WARN] nebula-storaged after v3.0.0 will not start service until it is added to cluster.
[WARN] See Manage Storage hosts:ADD HOSTS in https://docs.nebula-graph.io/
[INFO] nebula-storaged(c9f84b1): Running as 1956, Listening on 9779
[root@clickhouse nebula]#
但是当部署nebula-graph-studio
之后
发现使用nebula-graph-studio
的可视化界面创建 space
,老是提示 [ERROR (-1005)]: Host not enough!
在官网搜索答案,终于解决了问题。
解决方式:
1、在nebula-graph-studio
可视化界面的控制控制台执行指令
其中 192.168.52.140
是我部署 nebula-graph
的地址。
add hosts 192.168.52.140:9779;
执行之后,提示执行成果。使用 show hosts
查看结果,发现 host
中存在了该 IP
地址。但是 Status
这一栏显示 OFFLINE
2、修改 nebula-storaged.conf
文件的配置信息
修改 nebula-graph
的 etc
目录下的 nebula-storaged.conf
文件,在第 34
行,
修改 --local_ip
后的地址为部署 nebula-graph
的地址 。
3、重启 nebula-graph
服务
此时会发现,重启后没有警告信息(提示 ADD HOSTS
了)
[root@clickhouse nebula-graph-studio]#
[root@clickhouse nebula-graph-studio]# /opt/nebula/nebula-graph-3.3.0/scripts/nebula.service status all
[INFO] nebula-metad(c9f84b1): Running as 2440, Listening on 9559
[INFO] nebula-graphd(c9f84b1): Running as 2509, Listening on 9669
[INFO] nebula-storaged(c9f84b1): Running as 2550, Listening on 9779
[root@clickhouse nebula-graph-studio]#
再次启动nebula-graph-studio
,在nebula-graph-studio
的可视化界面执行 show hosts
发现 Status
这一栏显示为了 ONLINE
此时再次创建 space
就可以正常创建了。可以愉快的玩耍了。