nebula:3.6.0
nebula3-python 3.4.0
from nebula3.mclient import MetaCache, HostAddr
from nebula3.sclient.GraphStorageClient import GraphStorageClient
# the metad servers's address
meta_cache = MetaCache(
[
("localhost", 62031),
("localhost", 62032),
("localhost", 62033),
("localhost", 62034),
],
50000,
)
storage_addrs = [
HostAddr(host="localhost", port=62035),
HostAddr(host="localhost", port=62036),
HostAddr(host="localhost", port=62037),
HostAddr(host="localhost", port=62038),
]
graph_storage_client = GraphStorageClient(meta_cache, storage_addrs)
resp = graph_storage_client.scan_vertex(
space_name="dagou_graph_data_test", tag_name="apk_hash"
)
print(resp)
while resp.has_next():
result = resp.next()
for vertex_data in result:
print(vertex_data)
程序卡住没有结果