嵌入式OrientDB分布式模式 - 无法创建数据库

时间:2014-04-28 18:05:33

标签: distributed embedded-database orientdb

我在嵌入式分布式模式下设置了OrientDB(orientdb-community-1.7-20140428.151223-168-distribution)。我能够在2个独立的JVM中启动嵌入式orientDB,并验证两个服务器都是集群的一部分。

Members [2] {
    Member [localhost]:2434 this
    Member [localhost]:2435
}

然后我登录到控制台并创建了一个名为Tinker的数据库。在控制台中,它表示数据库已成功创建,但我无法从第二个节点连接到同一个数据库。

orientdb> create database remote:localhost:2425/Tinker admin admin memory

Creating database [remote:localhost:2425/Tinker] using the storage type [memory]...
Connecting to database [remote:localhost:2425/Tinker] with user 'admin'...OK
Database created successfully.

Current database is: remote:localhost:2425/Tinker
orientdb {Tinker}> connect remote:localhost:2424/Tinker admin admin               

Disconnecting from the database [Tinker]...OK
Connecting to database [remote:localhost:2424/Tinker] with user 'admin'...
Error: com.orientechnologies.orient.core.exception.OConfigurationException: Database 'Tinker' is not configured on server

我在服务器日志中看到以下错误消息。任何帮助将不胜感激。

2014-04-28 13:56:13:849 INFO将数据库'Tinker'的分布式配置文件保存到:/Users/peddi/Downloads/orientdb-community-1.7-SNAPSHOT/databases/Tinker/distributed-config。 json [OHazelcastPlugin] 2014-04-28 13:56:13:856 INFO [node1398358958901]在队列中找不到先前的消息orientdb.node.node1398358958901.Tinker.request [OHazelcastDistributedMessageService] [node1398358958901]< - [node1398358958902]在/中安装数据库Tinker时出错用户/ peddi /下载/ orientdb社区-1.7-SNAPSHOT /数据库/叮叮 com.orientechnologies.orient.core.storage.impl.memory.OStorageMemory无法转换为com.orientechnologies.orient.server.distributed.ODistributedStorage - > com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.executeOnLocalNode(OHazelcastPlugin.java:643) - > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:454) - > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase $ 1.run(OHazelcastDistributedDatabase.java:248) - > java.lang.Thread.run(Thread.java:724)线程“hz._hzInstance_1_orientdb.cached.thread-4”中的异常com.orientechnologies.orient.server.distributed.ODistributedException:没有从远程节点收到响应自动部署数据库     在com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installNewDatabases(OHazelcastPlugin.java:844)     在com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.entryAdded(OHazelcastPlugin.java:528)     在com.hazelcast.map.MapService.dispatchEvent(MapService.java:684)     在com.hazelcast.map.MapService.dispatchEvent(MapService.java:65)     在com.hazelcast.spi.impl.EventServiceImpl $ LocalEventDispatcher.run(EventServiceImpl.java:529)     在com.hazelcast.util.executor.StripedExecutor $ Worker.run(StripedExecutor.java:142)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)     在java.lang.Thread.run(Thread.java:724)     at com.hazelcast.util.executor.PoolExecutorThreadFactory $ ManagedThread.run(PoolExecutorThreadFactory.java:59)

1 个答案:

答案 0 :(得分:0)

您只有一个在线节点。看看分区。也许你已经复制了id为#34; node1398358958901"的第一台服务器的cfg。

删除或更改server2 / config / orientdb-dserver-config.xml

中的id