Got version 1.7.4.
This is the first time I am upgrading database, so maybe I did something 
wrong,..
I run export on old version (default command , no options specified) - 
looked good - got export gz file (size is not 0 ).
>From the console of the new database version (1.7.4) I run import command - 
also default one. Run OK, but database doesn't have anything but default 
stuff (ORole, OUser).
I had a bunch of tables created in the original database. Why they didn't 
get moved during export/import process.
I also tried backup/restore but got error saying that "backup is not 
correct command" (?)
Old version of database - 1.7rc1 , New version - 1.7.4.


orientdb {remoteIDManager}> select from ID

Error: com.orientechnologies.orient.core.exception.OQueryParsingException: 
Error on parsing query
Query:  ID
------^

Error: 
com.orientechnologies.orient.core.exception.OCommandExecutionException: 
Class 'ID' was not found in current database

orientdb {remoteIDManager}> info

Current database: remoteIDManager (url=remote:localhost/remoteIDManager)

DISTRIBUTED CONFIGURATION: none (OrientDB is running in standalone mode)

DATABASE PROPERTIES
--------------------------------+----------------------------------------------------+
 NAME                           | 
VALUE                                              |
--------------------------------+----------------------------------------------------+
 Name                           | 
null                                               |
 Version                        | 
9                                                  |
 Date format                    | 
yyyy-MM-dd                                         |
 Datetime format                | yyyy-MM-dd 
HH:mm:ss                                |
 Timezone                       | 
America/Los_Angeles                                |
 Locale Country                 | 
US                                                 |
 Locale Language                | 
en                                                 |
 Charset                        | 
UTF-8                                              |
 Schema RID                     | 
#0:1                                               |
 Index Manager RID              | 
#0:2                                               |
 Dictionary RID                 | 
null                                               |
--------------------------------+----------------------------------------------------+

CLUSTERS
----------------------------------------------+-------+---------------------+---------+-----------------+
 NAME                                         |   ID  | TYPE                
| DATASEG | RECORDS         |
----------------------------------------------+-------+---------------------+---------+-----------------+
 default                                      |     3 | PHYSICAL            
|      -1 |               0 |
 e                                            |    10 | PHYSICAL            
|      -1 |               0 |
 index                                        |     1 | PHYSICAL            
|      -1 |               6 |
 internal                                     |     0 | PHYSICAL            
|      -1 |               3 |
 manindex                                     |     2 | PHYSICAL            
|      -1 |               5 |
 ofunction                                    |     7 | PHYSICAL            
|      -1 |               0 |
 orids                                        |     6 | PHYSICAL            
|      -1 |               0 |
 orole                                        |     4 | PHYSICAL            
|      -1 |               3 |
 oschedule                                    |     8 | PHYSICAL            
|      -1 |               0 |
 ouser                                        |     5 | PHYSICAL            
|      -1 |               3 |
 v                                            |     9 | PHYSICAL            
|      -1 |               0 |
----------------------------------------------+-------+---------------------+---------+-----------------+
 TOTAL = 11                                                                 
|         |              20 |
----------------------------------------------------------------------------+---------+-----------------+

CLASSES
----------------------------------------------+------------------------------------+------------+----------------+
 NAME                                         | 
SUPERCLASS                         | CLUSTERS   | RECORDS        |
----------------------------------------------+------------------------------------+------------+----------------+
 E                                            
|                                    | 10         |              0 |
 OFunction                                    
|                                    | 7          |              0 |
 OIdentity                                    
|                                    | -          |              0 |
 ORestricted                                  
|                                    | -          |              0 |
 ORIDs                                        
|                                    | 6          |              0 |
 ORole                                        | 
OIdentity                          | 4          |              3 |
 OSchedule                                    
|                                    | 8          |              0 |
 OTriggered                                   
|                                    | -          |              0 |
 OUser                                        | 
OIdentity                          | 5          |              3 |
 V                                            
|                                    | 9          |              0 |
----------------------------------------------+------------------------------------+------------+----------------+
 TOTAL = 
10                                                                              
                      
6 |
----------------------------------------------+------------------------------------+------------+----------------+

INDEXES
----------------------------------------------+------------+-----------------------+----------------+------------+
 NAME                                         | TYPE       |         
CLASS         |     FIELDS     | RECORDS    |
----------------------------------------------+------------+-----------------------+----------------+------------+
 ___exportImportRIDMap                        | DICTION... 
|                       |                |          0 |
 dictionary                                   | DICTIONARY 
|                       |                |          0 |
 ORole.name                                   | UNIQUE     | 
ORole                 | name           |          3 |
 OUser.name                                   | UNIQUE     | 
OUser                 | name           |          3 |
----------------------------------------------+------------+-----------------------+----------------+------------+
 TOTAL = 
4                                                                               
                      
6 |
-----------------------------------------------------------------------------------------------------------------+
orientdb {remoteIDManager}>


On Monday, June 30, 2014 11:34:30 PM UTC-7, Lvc@ wrote:
>
> Hi,
> 1.7rc1 is pretty old, please use the stable 1.7.4.
>
> Lvc@
> Il 01/lug/2014 01:22 "galina manashirova" <[email protected] 
> <javascript:>> ha scritto:
>
>> Hi;
>> I am testing replication.
>> Using one computer:
>>
>> Node1:
>>  Database is under directory  *orientDB_v1.7_node1*
>> Created database as remote:localhost/remoteIDManager  on node1.
>> Started from the console in distributed mode.
>>
>>
>> Node2:
>> Copied database under directory :  *orientDB_v1.7_node2.*
>> Started from the console in distributed mode.
>>
>> Both nodes see each other - I checked form the console.
>>
>> Inserted record in first node:
>>
>> *insert into IDM_version (version) values (1)*
>>
>> Inserted record 'IDM_Version#14:0{version:1} v1' in 0.008000 sec(s).
>>
>> Switched to the console of the node2. Connected to the database.
>> Note : from both console connect string is the same:
>>
>> *connect remote:localhost/remoteIDManager admin admin*
>>
>> So far everything looks good. 
>> Now I kill (stop) first node from the first console.
>> Run :
>> *SELECT FROM IDM_version*
>>
>> on the second node (second console) and getting nothing.
>> Nothing been replicated into second node from the first one?
>> All configurations are default, except I changed nodeName from the random 
>> number :
>>
>>
>>    - 
>>    
>>    <parameters> 
>>    - 
>>       
>>       <parameter name="enabled" value="true"/> <parameter 
>>       name="configuration.db.default" 
>>       value="${ORIENTDB_HOME}/config/default-distributed-db-config.json"/> 
>> <parameter 
>>       name="configuration.hazelcast" 
>>       value="${ORIENTDB_HOME}/config/hazelcast.xml"/> <parameter 
>>       name="conflict.resolver.impl" 
>>       
>> value="com.orientechnologies.orient.server.distributed.conflict.ODefaultReplicationConflictResolver"/>
>>  
>>       <parameter name="sharding.strategy.round-robin" 
>>       
>> value="com.orientechnologies.orient.server.hazelcast.sharding.strategy.ORoundRobinPartitioninStrategy"/>
>>  
>>       
>>       - 
>>       
>>       *<parameter name="nodeName" value="node_Server1"/> *
>>       - 
>>       
>>       </parameters>
>>       
>>    Replication is a deal breaker for our project. 
>>    - What I am doing wrong?
>>
>> Thanks.
>>
>> -galina
>>
>>    - 
>>       - 
>>       - 
>>       
>>
>>
>>
>>
>>
>>
>>
>>
>>  -- 
>>
>> --- 
>> 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] <javascript:>.
>> 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.

Reply via email to