Star

ScanVertex报错,建议在metad服务中注册的storaged host可以通过docker配置修改

部署方式:docker-compose

调用方式:nebula2-python

错误信息

[2021-01-28 06:46:11,792]:Get connection to ('172.16.238.30', 3699)
ResultSet(keys: ['Host', 'Port', 'Status', 'Leader count', 'Leader distribution', 'Partition distribution'], values: ["storaged0", 44500, "OFFLINE", 0, "No valid partition", "nba:33, traffic_map:33, ScanSpace:3, test:33, nba_ft:1"],["storaged1", 44500, "OFFLINE", 0, "No valid partition", "nba:34, traffic_map:34, ScanSpace:4, test:34, nba_ft:1"],["storaged2", 44500, "OFFLINE", 0, "No valid partition", "nba:33, traffic_map:33, ScanSpace:3, test:33, nba_ft:1"],["172.16.238.20", 44500, "ONLINE", 0, "No valid partition", "No valid partition"],["172.16.238.21", 44500, "ONLINE", 0, "No valid partition", "No valid partition"],["172.16.238.22", 44500, "ONLINE", 0, "No valid partition", "No valid partition"])
======== Scan vertexes in ScanSpace ======
[2021-01-28 06:46:11,802]:Query storage: HostAddr(
    host='storaged0',
    port=44500), part id: 9 failed: -32
[2021-01-28 06:46:11,802]:Query storage: HostAddr(
    host='storaged1',
    port=44500), part id: 10 failed: -32
[2021-01-28 06:46:11,803]:Scan failed: Query storage: HostAddr(
    host='storaged0',
    port=44500), part id: 9 failed: -32
[2021-01-28 06:46:11,803]:Scan failed: Query storage: HostAddr(
    host='storaged1',
    port=44500), part id: 10 failed: -32
Traceback (most recent call last):
  File "/root/pycharm/playground/nebula-python/example/ScanVertexEdgeExample.py", line 136, in <module>
    scan_person_vertex(graph_storage_client)
  File "/root/pycharm/playground/nebula-python/example/ScanVertexEdgeExample.py", line 62, in scan_person_vertex
    result = resp.next()
  File "/root/anaconda3/lib/python3.7/site-packages/nebula2/sclient/ScanResult.py", line 129, in next
    raise exceptions[0]
RuntimeError: Scan failed: Query storage: HostAddr(
    host='storaged0',
    port=44500), part id: 9 failed: -32

建议在 metad 服务中注册的 storaged host 可以通过 docker 配置修改,现在默认就是 hostname,客户端又不支持非 ip 的连接,确实有点蛋疼

nebula 2.0 支持使用 hostname 直接建立连接

浙ICP备20010487号