Does the OGraphBatchInsert work with the remote databases? 
I get the following error when I use the same:

[1] 2015-08-24 13:35:08:072 INFO  Disconnected as serverAdmin 
[db]java.lang.UnsupportedOperationException: Cannot check the existance of 
a database in a remote server. Please use the console or the OServerAdmin 
class.
[1] at 
com.orientechnologies.orient.client.remote.OStorageRemote.exists(OStorageRemote.java:278)
[1] at 
com.orientechnologies.orient.client.remote.OStorageRemoteThread.exists(OStorageRemoteThread.java:177)
[1] at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.exists(ODatabaseDocumentTx.java:1070)
[1] at 
com.orientechnologies.orient.graph.batch.OGraphBatchInsert.begin(OGraphBatchInsert.java:245)

I use connect to the remote db like the following
  public void load(){
    OGraphBatchInsert batch = new OGraphBatchInsert(DBConstants.URL + "/" + 
DBConstants.DB_NAME,
            DBConstants.DB_USER, DBConstants.DB_PASSWD);
    batch.begin();
    batch.createEdge(0L, 1L,null);
    batch.createEdge(0L, 2L,null);
    batch.end();
  }

I am using version orientdb-community-2.0.12

-- 

--- 
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