创建首个Nebula Graph Space报错Host not enough的问题求助
问题解决与入门指南
解决"Host not enough"报错
- 先执行
SHOW HOSTS查看已注册的Storage节点,确认有状态为Online的节点。你之前添加的192.168.10.100:9779等地址并非Docker扩展部署的实际节点,所以无法生效。 - 针对Docker扩展的单节点部署场景,创建空间时使用最小参数测试:
CREATE SPACE bverse(partition_num=1, replica_factor=1, vid_type=fixed_string(30)); - 如果仍报错,重启Docker扩展中的Nebula Graph服务,确保Meta、Storage、Graph服务均正常启动。
有效入门操作步骤
- 登录Nebula Console后,先执行
SHOW HOSTS验证Storage节点状态,确保服务正常。 - 创建基础空间(单节点场景):
CREATE SPACE bverse(partition_num=1, replica_factor=1, vid_type=fixed_string(30)); - 切换到目标空间:
USE bverse; - 创建标签与边类型:
CREATE TAG person(name string, age int); CREATE EDGE follow(degree int); - 插入示例数据:
INSERT VERTEX person(name, age) VALUES "Alice":("Alice", 25); INSERT VERTEX person(name, age) VALUES "Bob":("Bob", 30); INSERT EDGE follow(degree) VALUES "Alice"->"Bob":(90); - 执行查询:
GO FROM "Alice" OVER follow YIELD follow.degree, $$.person.name;
内容的提问来源于stack exchange,提问作者dcsan
相关产品推荐
相关产品推荐

