Thanks for your response!!

I am doing it for distributed mode. and taken the default 
-preserveClusterIDs=false

Is this an issue?

Thanks,
Manmay

On Wednesday, September 14, 2016 at 8:33:09 PM UTC+5:30, Ivan Mainetti 
wrote:
>
> Are you performing the IMPORT in distributed mode? please retry in single 
> instance mode.
>
> and BTW, from the docs: 
>
>>
>>    - -preserveClusterIDs Defines whether you want to preserve cluster 
>>    ID's during the import. When turned off, the import creates temporary 
>>    cluster ID's, which can sometimes fail. This option is only valid with 
>>    PLocal storage.
>>
>> http://orientdb.com/docs/master/Console-Command-Import.html  
> <http://orientdb.com/docs/master/Console-Command-Import.html>
>
>
> Il giorno mercoledì 14 settembre 2016 16:48:54 UTC+2, Manmay Kudale ha 
> scritto:
>>
>> Hello,
>>
>> I have a dev environment with OrientDB setup.
>> I have exported the database from command line using the below command, 
>> to just export the Schema and Functions.
>>
>> export database k_schema_functions.gz -includeClass=OFunction 
>> -includeSchema=true
>>
>>
>>
>> Now, to import the database on my test environment, I have used the below 
>> command and got the following errors
>>
>> orientdb> connect remote:127.0.0.1/KATest admin admin
>> Connecting to database [remote:127.0.0.1/KATest] with user 'admin'...OK
>> CONFIGURED SERVERS
>> +----+---------------------+------+-----------+-------------------+--------------+--------------+-----------------+-----------------+---------+
>> |#   |Name                 |Status|Connections|StartedOn          |Binary    
>>     |HTTP          |UsedMemory       |FreeMemory       |MaxMemory|
>> +----+---------------------+------+-----------+-------------------+--------------+--------------+-----------------+-----------------+---------+
>> |0   |kt-orientdb |ONLINE|2          |2016-09-08 
>> 17:04:26|10.10.3.8:2424|10.10.3.8:2480|125.47MB (25.35%)|369.47MB 
>> (74.65%)|494.94MB |
>> |1   |kt-orientdb2|ONLINE|2          |2016-09-08 
>> 17:05:16|10.10.3.9:2424|10.10.3.9:2480|103.99MB (21.01%)|390.95MB 
>> (78.99%)|494.94MB |
>> +----+---------------------+------+-----------+-------------------+--------------+--------------+-----------------+-----------------+---------+
>> orientdb {db=KATest}> IMPORT DATABASE /home/mk/k_schema_functions.gz 
>> -preserveClusterIDs=false
>> Importing database DATABASE /home/mk/k_schema_functions.gz 
>> -preserveClusterIDs=false...
>> Started import of database 'plocal:/opt/orientdb/databases/KATest' from 
>> /tmp/KATestimport249370533050042872k_schema_functions...
>> Non merge mode (-merge=false): removing all default non security 
>> classesError on database import happened just before line 0, column 1
>> com.orientechnologies.orient.server.distributed.task.ODistributedOperationException:
>>  Quorum 1 not reached for request (id=1.65147 task=command_sql(drop class 
>> _studio unsafe)). Elapsed=1473347052672ms No server in conflict. Received: 
>>  - kt-orientdb2: waiting-for-response
>>     DB name="KATest"
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:633)
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:332)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.waitForResponse(ODistributedDatabaseImpl.java:757)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.send2Nodes(ODistributedDatabaseImpl.java:390)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.sendRequest(ODistributedAbstractPlugin.java:608)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.command(ODistributedStorage.java:325)
>>     at 
>> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:69)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaShared.dropClass(OSchemaShared.java:519)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaProxy.dropClass(OSchemaProxy.java:146)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.removeDefaultNonSecurityClasses(ODatabaseImport.java:659)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:396)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.importDatabase(ONetworkProtocolBinary.java:2913)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:633)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:318)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:196)
>>     at 
>> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)
>> Started import of database 'plocal:/opt/orientdb/databases/KATest' from 
>> /tmp/KATestimport8819542657221796817k_schema_functions...
>> Non merge mode (-merge=false): removing all default non security 
>> classesError on database import happened just before line 0, column 0
>> com.orientechnologies.orient.server.distributed.task.ODistributedOperationException:
>>  Quorum 1 not reached for request (id=1.65148 task=command_sql(drop class 
>> _studio unsafe)). Elapsed=1473347052671ms No server in conflict. Received: 
>>  - kt-orientdb2: waiting-for-response
>>     DB name="KATest"
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:633)
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:332)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.waitForResponse(ODistributedDatabaseImpl.java:757)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.send2Nodes(ODistributedDatabaseImpl.java:390)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.sendRequest(ODistributedAbstractPlugin.java:608)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.command(ODistributedStorage.java:325)
>>     at 
>> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:69)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaShared.dropClass(OSchemaShared.java:519)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaProxy.dropClass(OSchemaProxy.java:146)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.removeDefaultNonSecurityClasses(ODatabaseImport.java:659)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:396)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.importDatabase(ONetworkProtocolBinary.java:2913)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:633)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:318)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:196)
>>     at 
>> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)
>> Started import of database 'plocal:/opt/orientdb/databases/KATest' from 
>> /tmp/KATestimport881834138156299624k_schema_functions...
>> Non merge mode (-merge=false): removing all default non security 
>> classesError on database import happened just before line 0, column 0
>> com.orientechnologies.orient.server.distributed.task.ODistributedOperationException:
>>  Quorum 1 not reached for request (id=1.65149 task=command_sql(drop class 
>> _studio unsafe)). Elapsed=1473347052672ms No server in conflict. Received: 
>>  - kt-orientdb2: waiting-for-response
>>     DB name="KATest"
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:633)
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:332)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.waitForResponse(ODistributedDatabaseImpl.java:757)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.send2Nodes(ODistributedDatabaseImpl.java:390)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.sendRequest(ODistributedAbstractPlugin.java:608)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.command(ODistributedStorage.java:325)
>>     at 
>> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:69)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaShared.dropClass(OSchemaShared.java:519)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaProxy.dropClass(OSchemaProxy.java:146)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.removeDefaultNonSecurityClasses(ODatabaseImport.java:659)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:396)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.importDatabase(ONetworkProtocolBinary.java:2913)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:633)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:318)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:196)
>>     at 
>> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)
>> Started import of database 'plocal:/opt/orientdb/databases/KATest' from 
>> /tmp/KATestimport8128550964075926326k_schema_functions...
>> Non merge mode (-merge=false): removing all default non security 
>> classesError on database import happened just before line 0, column 0
>> com.orientechnologies.orient.server.distributed.task.ODistributedOperationException:
>>  Quorum 1 not reached for request (id=1.65150 task=command_sql(drop class 
>> _studio unsafe)). Elapsed=1473347052671ms No server in conflict. Received: 
>>  - kt-orientdb2: waiting-for-response
>>     DB name="KATest"
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:633)
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:332)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.waitForResponse(ODistributedDatabaseImpl.java:757)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.send2Nodes(ODistributedDatabaseImpl.java:390)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.sendRequest(ODistributedAbstractPlugin.java:608)
>>     at 
>> com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.command(ODistributedStorage.java:325)
>>     at 
>> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:69)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaShared.dropClass(OSchemaShared.java:519)
>>     at 
>> com.orientechnologies.orient.core.metadata.schema.OSchemaProxy.dropClass(OSchemaProxy.java:146)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.removeDefaultNonSecurityClasses(ODatabaseImport.java:659)
>>     at 
>> com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:396)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.importDatabase(ONetworkProtocolBinary.java:2913)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:633)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:318)
>>     at 
>> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:196)
>>     at 
>> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)
>> Started import of database 'plocal:/opt/orientdb/databases/KATest' from 
>> /tmp/KATestimport3550610617718135406k_schema_functions...
>> Non merge mode (-merge=false): removing all default non security 
>> classesError on database import happened just before line 0, column 0
>> com.orientechnologies.orient.server.distributed.task.ODistributedOperationException:
>>  Quorum 1 not reached for request (id=1.65151 task=command_sql(drop class 
>> _studio unsafe)). Elapsed=1473347052671ms No server in conflict. Received: 
>>  - kt-orientdb2: waiting-for-response
>>     DB name="KATest"
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:633)
>>     at 
>> com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:332)
>>     at com.orientechnologies.orient.server.distributed
>>
>>
>>
>>
>> After import, In the Orient Studio..  I see that only the functions are 
>> imported and schema is not.
>>
>> *Please suggest.*
>>
>> Thanks,
>> Manmay
>>
>>
>>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to