OrientDB - 将数据库复制到远程服务器错误

时间:2013-02-03 03:00:46

标签: load-balancing distributed orientdb

很抱歉再次提问,但我无法解决这个问题。

首先,我在204上启动OrientDB服务器, 然后我在本地计算机上启动OrientDB服务器,并创建一个数据库

orientdb> create database remote:localhost/mydemo root password local graph
create database remote:localhost/mydemo root password local graph
Creating database [remote:localhost/mydemo] using the storage type [local]...

Disconnecting from remote server [remote:localhost/ddemo]...OK

Disconnecting from the database [ddemo]...OK
Connecting to database [remote:localhost/mydemo] with user 'admin'...OK
Database created successfully.

Current database is: remote:localhost/mydemo

然后我尝试将此数据库复制到远程服务器204:

orientdb> copy database mydemo admin admin 192.168.222.204 local
orientdb> copy database mydemo admin admin 192.168.222.204 local
copy database mydemo admin admin 192.168.222.204 local
Copying database 'mydemo' to the server '192.168.222.204' via network streaming...

!ERROR: Connection is closed

为什么我收到此错误?

我也试过JAVA API,没有例外,但是在执行之后,远程服务器上不存在数据库。

    OServerAdmin admin = new OServerAdmin("remote:localhost/mydemo");
    admin.connect("root", "password");
    admin.copyDatabase("ddemo", "admin", "admin", "192.168.222.204", "local");

如何将其复制到远程服务器以便继续进行群集工作?

当我想将数据库复制到204时,远程服务器204应该作为集群节点还是作为单个服务器启动?

是否有所有这些操作的文件?有关如何设置关于OrientDB的clutering服务器的任何文档?

1 个答案:

答案 0 :(得分:0)

您正尝试将数据存储类型创建为本地,但将URL设置为远程: 配置群集/分布式网络的步骤。 - 在一个节点中创建数据库。 - 将db文件夹复制到其他节点 - 将orinetDB服务器作为dserver.bat启动。 它将创建集群。