簡體   English   中英

在Orientdb中以分布式模式打開數據庫

[英]Opening database in Orientdb in distributed mode

我正在嘗試在orientdb中使用pyorient打開數據庫,該數據庫已配置並以分布式模式啟動。 但是,由於過程未完成以及未引發任何錯誤,因此沒有打開數據庫。 我可以使用HTTP端口2480打開和訪問節點。但是,當我嘗試使用二進制端口2424時,卻遇到了這個問題。

import pyorient client = pyorient.OrientDB("localhost", 2424) session_id = client.connect( "xxxx", "xxxxx") client.db_open( "orient_poc", "xxxx", "xxxx")

如何解決呢?

這是由於pyorient的CSV序列化程序中的錯誤。 您不能以分布式模式連接到OrientDB。

OrientSerialization.CSV無法解析orientDB協議並進入無限循環。

當前在pyorient上有一個開發分支,用於實現缺少的二進制序列化程序(OrientSerialization.Binary)。

通過以下方式安裝:

pip install https://github.com/mogui/pyorient/tarball/develop#egg=pyorient

設置序列化器,如下所示:

client = pyorient.OrientDB("localhost", 2424, serialization_type=pyorient.OrientSerialization.Binary)

那對我有用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM