- nebula 版本:v2.0.0-rc1
- 部署方式:Docker
- 硬件信息
- SSD
- MacOS core-i5、8GB 内存
- 在 MacOS 上通过 Docker 方式安装后(nebula-docker-compose 安装),
- 报错信息
example git:(v2.0.0) ✗ python3 ScanVertexEdgeExample.py
[2021-03-26 16:01:28,976]:Update meta data failed: TSocket read 0 bytes
[2021-03-26 16:01:28,993]:Traceback (most recent call last):
File "../nebula2/mclient/__init__.py", line 198, in _load_all
spaces = self._meta_client.list_spaces()
File "../nebula2/mclient/__init__.py", line 101, in list_spaces
resp = self._connection.listSpaces(req)
File "../nebula2/meta/MetaService.py", line 18113, in listSpaces
return self.recv_listSpaces()
File "../nebula2/meta/MetaService.py", line 18124, in recv_listSpaces
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
File "../nebula2/fbthrift/protocol/TBinaryProtocol.py", line 153, in readMessageBegin
name = self.trans.readAll(sz)
File "../nebula2/fbthrift/transport/TTransport.py", line 75, in readAll
chunk = self.read(need)
File "../nebula2/fbthrift/transport/TTransport.py", line 186, in read
self.__rbuf = StringIO(self.__trans.read(max(sz, self.__rbuf_size)))
File "../nebula2/fbthrift/transport/TSocket.py", line 301, in read
message='TSocket read 0 bytes')
nebula2.fbthrift.transport.TTransport.TTransportException: TSocket read 0 bytes
python 代码
if __name__ == '__main__':
meta_cache = None
graph_storage_client = None
try:
# the metad servers's address
meta_cache = MetaCache([('127.0.0.1', 49880)], 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()
奇怪的是,执行 GraphClientMultiThreadExample.py
和 GraphClientSimpleExample.py
都很顺利。
如下是docker内 nebula 信息:
docker-compose ps