簡體   English   中英

嵌入式OrientDB分布式模式-創建數據庫失敗

[英]Embedded OrientDB distributed mode - failed to create database

我在嵌入式分布式模式下安裝了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信息將數據庫“修補程序”的分布式配置文件保存到:/Users/peddi/Downloads/orientdb-community-1.7-SNAPSHOT/databases/Tinker/distributed-config.json [OHazelcastPlugin ] 2014-04-28 13:56:13:856信息[node1398358958901]在隊列orientdb.node.node1398358958901.Tinker.request [OHazelcastDistributedMessageService] [node1398358958901] <-[node1398358958901] <-[node1398358958902]用戶/ peddi /下載/orientdb-community-1.7-SNAPSHOT/數據庫/ Tinker 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.orienttech。 .hazelcast.OHazelcastDistributedDatab ase $ 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.entryededed上,未從com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installNewDatabases(OHazelcastPlugin.java:844)處的數據庫自動部署收到來自遠程節點的響應 。 (OHazelcastPlugin.java:528)com.hazelcast.map.MapService.dispatchEvent(MapService.java:684)com.hazelcast.map.MapService.dispatchEvent(MapService.java:65)com.hazelcast.spi.impl。 com.hazelcast.util.executor.StripedExecutor $ Worker.run(StripedExecutor.java:142)處的EventServiceImpl $ LocalEventDispatcher.run(EventServiceImpl.java:529)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)在java.lang處的java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)處。 com.hazelcast.util.executor.PoolExecutorThreadFactory $ ManagedThread.run(PoolExecutorThreadFactory.java:59)上的Thread.run(Thread.java:724)

您只有一個節點在線。 看分區。 也許您已經復制了ID為“ node1398358958901”的第一台服務器的cfg。

刪除或更改server2 / config / orientdb-dserver-config.xml中的ID

暫無
暫無

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

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