Hi, In-Memory database + Distributed works only in 2.0. Please could you try with 2.0-SNAPSHOT?
Lvc@ ᐧ On 13 October 2014 08:42, NY <[email protected]> wrote: > Hi, > I'm seeing an error trying to use OrientDB 1.7.9 for managing an in-memory > db in distributed mode on a couple of machines. > The idea is to use it as a cache with a low impact on the code. > Follow the stack-trace of the error (starting the first server) and the > configuration of the machines. > Any idea? > Thank you > R. > > 2014-10-13 15:16:35:662 SEVE Cannot initialize cache with implementation > class [com.orientechnologies.orient.server.hazelcast.OHazelcastCache]. > Class has no public constructor with parameter of type [class > java.lang.String,int]. Using default implementation > [com.orientechnologies.orient.core.cache.ODefaultCache] > [OCacheLevelTwoLocatorLocal]Exception in thread "OrientDB Node Request > orientdb.node.node1412871089725.db_cache.request" > com.orientechnologies.orient.core.exception.OStorageException: Cannot open > the storage 'db_cache' because it does not exist in path: db_cache > at > com.orientechnologies.orient.core.storage.impl.memory.OStorageMemory.open(OStorageMemory.java:140) > at > com.orientechnologies.orient.core.db.raw.ODatabaseRaw.open(ODatabaseRaw.java:107) > at > com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:49) > at > com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:268) > at > com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:49) > at > com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:557) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.initDatabaseInstance(OHazelcastDistributedDatabase.java:307) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.setOnline(OHazelcastDistributedDatabase.java:331) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:230) > at java.lang.Thread.run(Thread.java:744) > > 2014-10-13 15:16:40:660 SEVE Cannot initialize cache with implementation > class [com.orientechnologies.orient.server.hazelcast.OHazelcastCache]. > Class has no public constructor with parameter of type [class > java.lang.String,int]. Using default implementation > [com.orientechnologies.orient.core.cache.ODefaultCache] > [OCacheLevelTwoLocatorLocal]Exception in thread "main" > com.orientechnologies.orient.core.exception.OStorageException: Cannot open > the storage 'db_cache' because it does not exist in path: db_cache > at > com.orientechnologies.orient.core.storage.impl.memory.OStorageMemory.open(OStorageMemory.java:140) > at > com.orientechnologies.orient.core.db.raw.ODatabaseRaw.open(ODatabaseRaw.java:107) > at > com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:49) > at > com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:268) > at > com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:49) > at > com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:557) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.initDatabaseInstance(OHazelcastDistributedDatabase.java:307) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.setOnline(OHazelcastDistributedDatabase.java:331) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.loadDistributedDatabases(OHazelcastPlugin.java:890) > at > com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.startup(OHazelcastPlugin.java:195) > at > com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:720) > at > com.orientechnologies.orient.server.OServer.activate(OServer.java:241) > at > com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:32) > > > -Configuration (orientdb-dserver-config.xml) > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <orient-server> > <handlers> > <handler > class="com.orientechnologies.orient.graph.handler.OGraphServerHandler"> > <parameters> > <parameter value="true" name="enabled"/> > <parameter value="50" name="graph.pool.max"/> > </parameters> > </handler> > <handler > class="com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin"> > <parameters> > <parameter value="true" name="enabled"/> > <parameter > value="${ORIENTDB_HOME}/config/default-distributed-db-config.json" > name="configuration.db.default"/> > <parameter value="${ORIENTDB_HOME}/config/hazelcast.xml" > name="configuration.hazelcast"/> > <parameter > value="com.orientechnologies.orient.server.distributed.conflict.ODefaultReplicationConflictResolver" > name="conflict.resolver.impl"/> > <parameter > value="com.orientechnologies.orient.server.hazelcast.sharding.strategy.ORoundRobinPartitioninStrategy" > name="sharding.strategy.round-robin"/> > <parameter value="node1412871089725" name="nodeName"/> > </parameters> > </handler> > <handler > class="com.orientechnologies.orient.server.handler.OAutomaticBackup"> > <parameters> > <parameter value="false" name="enabled"/> > <parameter value="4h" name="delay"/> > <parameter value="backup" name="target.directory"/> > <parameter value="${DBNAME}-${DATE:yyyyMMddHHmmss}.json" > name="target.fileName"/> > <parameter value="" name="db.include"/> > <parameter value="" name="db.exclude"/> > </parameters> > </handler> > <handler > class="com.orientechnologies.orient.server.plugin.mail.OMailPlugin"> > <parameters> > <parameter value="true" name="enabled"/> > <parameter value="localhost" > name="profile.default.mail.smtp.host"/> > <parameter value="25" > name="profile.default.mail.smtp.port"/> > <parameter value="true" > name="profile.default.mail.smtp.auth"/> > <parameter value="true" > name="profile.default.mail.smtp.starttls.enable"/> > <parameter value="" name="profile.default.mail.smtp.user"/> > <parameter value="" > name="profile.default.mail.smtp.password"/> > <parameter value="yyyy-MM-dd HH:mm:ss" > name="profile.default.mail.date.format"/> > </parameters> > </handler> > <handler > class="com.orientechnologies.orient.server.handler.OServerSideScriptInterpreter"> > <parameters> > <parameter value="false" name="enabled"/> > </parameters> > </handler> > </handlers> > <network> > <protocols> > <protocol > implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" > name="binary"/> > <protocol > implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb" > name="http"/> > </protocols> > <listeners> > <listener protocol="binary" socket="default" > port-range="2424-2430" ip-address="0.0.0.0"/> > <listener protocol="http" socket="default" > port-range="2480-2490" ip-address="0.0.0.0"> > <commands> > <command > implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent" > pattern="GET|www GET|studio/ GET| GET|*.htm GET|*.html GET|*.xml GET|*.jpeg > GET|*.jpg GET|*.png GET|*.gif GET|*.js GET|*.css GET|*.swf GET|*.ico > GET|*.txt GET|*.otf GET|*.pjs GET|*.svg" stateful="false"> > <parameters> > <entry value="Cache-Control: no-cache, > no-store, max-age=0, must-revalidate\r\nPragma: no-cache" > name="http.cache:*.htm *.html"/> > <entry value="Cache-Control: max-age=120" > name="http.cache:default"/> > </parameters> > </command> > </commands> > <parameters> > <parameter value="utf-8" name="network.http.charset"/> > </parameters> > </listener> > </listeners> > </network> > <storages> > <storage name="db_cache" path="memory:db_cache" userName="admin" > userPassword="password" loaded-at-startup="true" /> > </storages> > <users> > <user resources="*" password="password" name="root"/> > <user resources="connect,server.listDatabases,server.dblist" > password="password" name="guest"/> > <user resources="database.passthrough" > password="A3D2AC42D44259756A371EECB555555BB60B4EFACC62162724358EC382099B4" > name="replicator"/> > </users> > <properties> > <entry value="1" name="db.pool.min"/> > <entry value="20" name="db.pool.max"/> > <entry value="false" name="cache.level1.enabled"/> > <entry value="1000" name="cache.level1.size"/> > <entry value="false" name="cache.level2.enabled"/> > <entry value="1000" name="cache.level2.size"/> > <entry value="true" name="profiler.enabled"/> > <entry value="info" name="log.console.level"/> > <entry value="fine" name="log.file.level"/> > <entry name="cache.level2.impl" > value="com.orientechnologies.orient.server.hazelcast.OHazelcastCache" /> > </properties> > </orient-server> > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
