很抱歉再次提问,但我无法让它工作。
首先,我在 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 的集群服务器的任何文档?