ScanVertexEdgeExample.py执行失败

提问参考模版:

  • 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

服务状态正常吗

就是我发的图里面那个,ADD HOSTS我的电脑之后,就算我在电脑上用console连了也显示的offline

warning 文件句柄数目不够了 你用ulimit -n 设置一个大一点的值

我试一试,这个命令请问什么?可以在手册里面找到吗?我的nebulagraph版本是3.1.0

这是 linux 系统报的 warning 你可以百度下

你好,现在我解决了那个warrning了,但还是不行,还是原来那个错误

这个报错是服务没启动成功 看下info日志

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。