提问参考模版:
- nebula 版本:3.1.0
- 部署方式:分布式
- 安装方式: RPM
- 是否为线上版本:是
在执行nebula-python3.0的example中的扫描的例子中出现了错误 就是那个ScanVertexEdgeExample.py
RuntimeError: Get storage address from meta cache is empty
nebula部署在一个centos7的虚拟机上面
meta graph storge的local_ip都改成了虚拟机的ip
执行example出现了错误
下面是example的代码,就是从github下来的
if __name__ == '__main__':
meta_cache = None
graph_storage_client = None
try:
# the metad servers's address
meta_cache = MetaCache(
[('192.168.163.128', 9559)], 50000
)
graph_storage_client = GraphStorageClient(meta_cache)
prepare_data()
scan_person_vertex(graph_storage_client)
scan_person_edge(graph_storage_client)
except Exception as x:
import traceback
print(traceback.format_exc())
if graph_storage_client is not None:
graph_storage_client.close()
exit(1)
finally:
if graph_storage_client is not None:
graph_storage_client.close()
if meta_cache is not None:
meta_cache.close()
出现的错误是:
File “f:\新建文件夹\nebula-python-master\example\ScanVertexEdgeExample.py”, line 134, in
graph_storage_client = GraphStorageClient(meta_cache)
File “D:\python39\lib\site-packages\nebula3\sclient\GraphStorageClient.py”, line 43, in init
self._create_connection()
File “D:\python39\lib\site-packages\nebula3\sclient\GraphStorageClient.py”, line 75, in _create_connection
raise RuntimeError(‘Get storage address from meta cache is empty’)
RuntimeError: Get storage address from meta cache is empty