Hi,
I think creating a simple Java class that import the database would be
easier. Something like:
ODocument doc = new ODocument();
f = open mongo file
for( String line : f.readFileLineByLine() ){
doc.reset();
doc.setClassname("xxxx"); // SET HERE YOUR CLASS NAME
doc.fromJSON(line);
doc.save();
}
Lvc@
On 27 February 2014 20:42, Shishya <[email protected]> wrote:
> Hi Luca/Someone
>
> Please help here. I am trying to run it normally. But I get this error
> more so often. I cant connect by remote, but by plocal only. Indexes shows
> indexes in console but cluster has no index.
>
> Please help
>
>
> 2014-02-27 19:31:51:669 INFO Wait till indexes restore after crash was
> finished. [OIndexManagerShared]Error when attempt to restore indexes
> after crash was performed.
> Error in creation of new cluster 'index' of type: PHYSICAL
> -> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> -> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:57)
> -> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:45)
> -> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> -> com.orientechnologies.common.log.OLogManager.exception(OLogManager.java
> :162)
> -> com.orientechnologies.orient.core.storage.impl.local.paginated.
> OLocalPaginatedStorage.addCluster(OLocalPaginatedStorage.java:905)
> -> com.orientechnologies.orient.core.index.OIndexManagerShared$1.run(
> OIndexManagerShared.java:345)
> -> java.lang.Thread.run(Thread.java:744)
> Cannot add segment 'index' because it is already registered in database
> 'uspto8'
> -> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> -> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:57)
> -> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:45)
> -> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> -> com.orientechnologies.common.log.OLogManager.exception(OLogManager.java
> :162)
> -> com.orientechnologies.orient.core.storage.impl.local.paginated.
> OLocalPaginatedStorage.addCluster(OLocalPaginatedStorage.java:905)
> -> com.orientechnologies.orient.core.index.OIndexManagerShared$1.run(
> OIndexManagerShared.java:345)
> -> java.lang.Thread.run(Thread.java:744)
> 2014-02-27 19:31:51:670 INFO Indexes restore after crash was finished. [
> OIndexManagerShared]
> 2014-02-27 19:31:51:704 SEVE Internal server error:
> java.lang.IllegalArgumentException: Cluster 1 is null [
> ONetworkProtocolHttpDb]
>
>
>
> --
>
> ---
> 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/groups/opt_out.
>
--
---
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/groups/opt_out.