2

很抱歉再次提问,但我无法让它工作。

首先,我在 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 的集群服务器的任何文档?

4

1 回答 1

0

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

于 2013-06-14T10:58:08.527 回答